diff options
author | Muhammad Mahad <mahadtxt@gmail.com> | 2023-07-03 21:08:33 +0500 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2023-07-04 05:06:47 +0000 |
commit | 28be497dc3385e53e6ac62b63a272b73b0594d60 (patch) | |
tree | 9f9814c89b54ebb7495bb3eb854ef42843f8d9de /gcc | |
parent | 2f91d511200bf85558c9013b09a458c06edd1e02 (diff) | |
download | gcc-28be497dc3385e53e6ac62b63a272b73b0594d60.zip gcc-28be497dc3385e53e6ac62b63a272b73b0594d60.tar.gz gcc-28be497dc3385e53e6ac62b63a272b73b0594d60.tar.bz2 |
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 <mahadtxt@gmail.com>
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/rust/typecheck/rust-tyty-subst.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/rust/typecheck/rust-tyty-subst.cc b/gcc/rust/typecheck/rust-tyty-subst.cc index bf0c99e..afbb354 100644 --- a/gcc/rust/typecheck/rust-tyty-subst.cc +++ b/gcc/rust/typecheck/rust-tyty-subst.cc @@ -606,7 +606,8 @@ SubstitutionRef::get_mappings_from_generic_args (HIR::GenericArgs &args) 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 (); } } |