summaryrefslogtreecommitdiffstats
path: root/tests/ui/error-codes/E0615.rs
blob: d04e4d5f7e1841fd0259ddcd1e2675ffa5bfa096 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
struct Foo {
    x: u32,
}

impl Foo {
    fn method(&self) {}
}

fn main() {
    let f = Foo { x: 0 };
    f.method; //~ ERROR E0615
}