aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/generics8.rs
diff options
context:
space:
mode:
authorMuhammad Mahad <mahadtxt@gmail.com>2023-08-17 10:42:52 +0500
committerArthur Cohen <arthur.cohen@embecosm.com>2024-01-16 19:04:31 +0100
commitdc68505f4cedfd06cc72657f3e9d14cc57335362 (patch)
tree2abd38a99803dc046b39e8e3ff711a90039e44c8 /gcc/testsuite/rust/compile/generics8.rs
parent5372086cf5243fa52c09bed8db49fe12918ab746 (diff)
downloadgcc-dc68505f4cedfd06cc72657f3e9d14cc57335362.zip
gcc-dc68505f4cedfd06cc72657f3e9d14cc57335362.tar.gz
gcc-dc68505f4cedfd06cc72657f3e9d14cc57335362.tar.bz2
gccrs: gccrs:[E0592] methods or associated functions with same name already defined
gcc/rust/ChangeLog: * typecheck/rust-hir-inherent-impl-overlap.h: Added rich location and errorcode. * typecheck/rust-hir-type-check-expr.cc (TypeCheckExpr::visit): likewise. gcc/testsuite/ChangeLog: * rust/compile/generics7.rs: Added Errorcode hint. * rust/compile/generics8.rs: Updated dejagnu comment. * rust/compile/issue-925.rs: Added Errorcode hint. Signed-off-by: Muhammad Mahad <mahadtxt@gmail.com>
Diffstat (limited to 'gcc/testsuite/rust/compile/generics8.rs')
-rw-r--r--gcc/testsuite/rust/compile/generics8.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/rust/compile/generics8.rs b/gcc/testsuite/rust/compile/generics8.rs
index 99df0c9..88c4bac 100644
--- a/gcc/testsuite/rust/compile/generics8.rs
+++ b/gcc/testsuite/rust/compile/generics8.rs
@@ -10,7 +10,7 @@ impl<T> Foo<i32, T> {
}
impl Foo<i32, f32> {
- fn test() -> f32 { // { dg-error "duplicate definitions with name test" }
+ fn test() -> f32 { // { dg-error "duplicate definitions with name .test." }
123f32
}
}