]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: [E0323] Implemented associated const, expected another trait
authorMuhammad Mahad <mahadtxt@gmail.com>
Tue, 18 Jul 2023 13:55:32 +0000 (18:55 +0500)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 17:55:59 +0000 (18:55 +0100)
commit5141707b5b5dcacde76dd0760f6604451f06ef85
tree80aea6c80c4417848809b73c9f339b0dd383d86a
parent973f4088efa74e3c181169b77c22358ae179d4d6
gccrs: [E0323] Implemented associated const, expected another trait

Refactored Error message similiar to rustc.

gcc/rust/ChangeLog:

* typecheck/rust-hir-type-check-implitem.cc (TypeCheckImplItemWithTrait::visit):
called error function.

gcc/testsuite/ChangeLog:

* rust/compile/non_member_const.rs: New test.

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