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 <mahadtxt@gmail.com>
for (auto &binding : args.get_binding_args ())
r.add_range (binding.get_locus ());
- rust_error_at (r, "associated type bindings are not allowed here");
+ rust_error_at (r, ErrorCode ("E0229"),
+ "associated type bindings are not allowed here");
return SubstitutionArgumentMappings::error ();
}
}