]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0185.rs
Merge commit 'e18101137866b79045fee0ef996e696e68c920b4' 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 }