Skip to content

Commit

Permalink
fix error number
Browse files Browse the repository at this point in the history
gcc/rust/ChangeLog:

	* typecheck/rust-tyty-call.cc (TypeCheckCallExpr::visit):

Signed-off-by: Ryutaro Okada <1015ryu88@gmail.com>
  • Loading branch information
sakupan102 committed Mar 11, 2025
1 parent 6029cc9 commit 469019b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gcc/rust/typecheck/rust-tyty-call.cc
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ TypeCheckCallExpr::visit (ADTType &type)
if (variant.get_variant_type () != TyTy::VariantDef::VariantType::TUPLE)
{
rust_error_at (
call.get_locus (), ErrorCode::E0423,
call.get_locus (), ErrorCode::E0618,
"expected function, tuple struct or tuple variant, found struct %<%s%>",
type.get_name ().c_str ());
return;
Expand Down

0 comments on commit 469019b

Please sign in to comment.