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 }