]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0185.rs
Merge commit 'b71f3405606d49b9735606b479c3415a0ca9810f' into clippyup
[rust.git] / src / test / ui / error-codes / E0185.rs
1 trait Foo {
2     fn foo();
3     //~^ NOTE trait method declared without `&self`
4 }
5
6 struct Bar;
7
8 impl Foo for Bar {
9     fn foo(&self) {}
10     //~^ ERROR E0185
11     //~| NOTE `&self` used in impl
12 }
13
14 fn main() {
15 }