Skip to content

Commit 8628813

Browse files
committed
gccrs: [E0229] associated type bindings error
Associated type binding outside of type parameter Declaration and where Clause gcc/rust/ChangeLog: * typecheck/rust-tyty-subst.cc (SubstitutionRef::get_mappings_from_generic_args): called error function Signed-off-by: Muhammad Mahad <[email protected]>
1 parent 5d33b88 commit 8628813

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

gcc/rust/typecheck/rust-tyty-subst.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,8 @@ SubstitutionRef::get_mappings_from_generic_args (HIR::GenericArgs &args)
606606
for (auto &binding : args.get_binding_args ())
607607
r.add_range (binding.get_locus ());
608608

609-
rust_error_at (r, "associated type bindings are not allowed here");
609+
rust_error_at (r, ErrorCode ("E0229"),
610+
"associated type bindings are not allowed here");
610611
return SubstitutionArgumentMappings::error ();
611612
}
612613
}

0 commit comments

Comments
 (0)