☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
rust
/
compile
/
method1.rs
☽
☼
gcc/testsuite/rust/compile/method1.rs
code
plain
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
}