diff options
author | Muhammad Mahad <mahadtxt@gmail.com> | 2023-08-29 20:00:18 +0500 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 19:04:35 +0100 |
commit | 2b560b964d60e42ea4cc99118b786acb0d96db34 (patch) | |
tree | c352e1336c1bea0db328a4b263344dbd28fb7d3e /gcc/testsuite/rust/compile/method1.rs | |
parent | f14cbab89d7a3678dd6c3b2f4a1102b4e6e95cf8 (diff) | |
download | gcc-2b560b964d60e42ea4cc99118b786acb0d96db34.zip gcc-2b560b964d60e42ea4cc99118b786acb0d96db34.tar.gz gcc-2b560b964d60e42ea4cc99118b786acb0d96db34.tar.bz2 |
gccrs: [E0599] Failed to resovle method implementation
gcc/rust/ChangeLog:
* typecheck/rust-hir-type-check-expr.cc (TypeCheckExpr::visit):
Added new error message, rich location and error code.
gcc/testsuite/ChangeLog:
* rust/compile/cfg2.rs: Updated according to new message.
* rust/compile/issue-2139.rs: likewise.
* rust/compile/issue-2190-1.rs: likewise.
* rust/compile/method1.rs: likewise.
Signed-off-by: Muhammad Mahad <mahadtxt@gmail.com>
Diffstat (limited to 'gcc/testsuite/rust/compile/method1.rs')
-rw-r--r-- | gcc/testsuite/rust/compile/method1.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/rust/compile/method1.rs b/gcc/testsuite/rust/compile/method1.rs index d371bf2..3741c61 100644 --- a/gcc/testsuite/rust/compile/method1.rs +++ b/gcc/testsuite/rust/compile/method1.rs @@ -8,5 +8,5 @@ pub fn main() { a = Foo(123); a.test(); - // { dg-error "failed to resolve method for .test." "" { target *-*-* } .-1 } + // { dg-error "no method named .test. found in the current scope" "" { target *-*-* } .-1 } } |