]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0185.rs
Merge commit '1411a98352ba6bee8ba3b0131c9243e5db1e6a2e' into sync_cg_clif-2021-12-31
[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 }