]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0186.rs
Suggest `if let`/`let_else` for refutable pat in `let`
[rust.git] / src / test / ui / error-codes / E0186.rs
1 trait Foo {
2     fn foo(&self); //~ `&self` used in trait
3 }
4
5 struct Bar;
6
7 impl Foo for Bar {
8     fn foo() {} //~ ERROR E0186
9     //~^ expected `&self` in impl
10 }
11
12 fn main() {
13 }