]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: [E0576] Associated `item` not found in given `type`
authorMuhammad Mahad <mahadtxt@gmail.com>
Fri, 19 Jul 2024 13:42:03 +0000 (13:42 +0000)
committerArthur Cohen <arthur.cohen@embecosm.com>
Mon, 17 Mar 2025 15:35:53 +0000 (16:35 +0100)
commitf9a8ce88cb3bfe68c370ddb7bd0292b832c35d4e
treeac0277426cb6fe07c173298fd42a66810b0f201d
parentc7cdae718c24e7a3f68d7090cc9947df5d848fb8
gccrs: [E0576] Associated `item` not found in given `type`

gcc/rust/ChangeLog:

* typecheck/rust-hir-type-check-type.cc (TypeCheckType::visit):
Add rich error message and error code similiar to rustc with
associaed type and trait name

gcc/testsuite/ChangeLog:

* rust/compile/unknown-associated-item.rs: New test.

Signed-off-by: Muhammad Mahad <mahadtxt@gmail.com>
gcc/rust/typecheck/rust-hir-type-check-type.cc
gcc/testsuite/rust/compile/unknown-associated-item.rs [new file with mode: 0644]