]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0615.rs
Merge commit 'd3a2366ee877075c59b38bd8ced55f224fc7ef51' into sync_cg_clif-2022-07-26
[rust.git] / src / test / ui / error-codes / E0615.rs
1 struct Foo {
2     x: u32,
3 }
4
5 impl Foo {
6     fn method(&self) {}
7 }
8
9 fn main() {
10     let f = Foo { x: 0 };
11     f.method; //~ ERROR E0615
12 }