]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0185.stderr
Move some E0XXX to `ui`
[rust.git] / src / test / ui / error-codes / E0185.stderr
1 error[E0185]: method `foo` has a `&self` declaration in the impl, but not in the trait
2   --> $DIR/E0185.rs:19:5
3    |
4 12 |     fn foo();
5    |     --------- trait method declared without `&self`
6 ...
7 19 |     fn foo(&self) {}
8    |     ^^^^^^^^^^^^^ `&self` used in impl
9
10 error: aborting due to previous error
11