]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0118-2.rs
Suggest `if let`/`let_else` for refutable pat in `let`
[rust.git] / src / test / ui / error-codes / E0118-2.rs
1 struct Foo;
2
3 impl &mut Foo {
4     //~^ ERROR E0118
5     fn bar(self) {}
6 }
7
8 fn main() {}