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