]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0615.rs
Suggest `if let`/`let_else` for refutable pat in `let`
[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 }