Debian Codegraph @

gcc/testsuite/rust/compile/method1.rs

raw
1 struct Foo(i32);
2 impl Foo {
3 fn test() {}
4 }
5
6 pub fn main() {
7 let a;
8 a = Foo(123);
9
10 a.test();
11 // { dg-error "no method named .test. found in the current scope" "" { target *-*-* } .-1 }
12 }