blob: dfa97ad9a6f4016be9d059a4e71be3fb144fbf66 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// This error is an E0609 and *not* an E0615 because the fact that the method exists is not
// relevant.
mod foo {
pub struct Foo {
x: u32,
}
impl Foo {
fn method(&self) {}
}
}
fn main() {
let f = foo::Foo { x: 0 };
f.method; //~ ERROR E0609
}
|