aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/method1.rs
blob: 3741c61b07693e44cca3177fd34b4049e9a69c70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
struct Foo(i32);
impl Foo {
    fn test() {}
}

pub fn main() {
    let a;
    a = Foo(123);

    a.test();
    // { dg-error "no method named .test. found in the current scope" "" { target *-*-* } .-1 }
}