]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0185.rs
Rollup merge of #97915 - tbu-:pr_os_string_fmt_write, r=joshtriplett
[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 }