]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0186.stderr
Rollup merge of #59056 - scottmcm:even-fewer-lifetimes, r=sfackler
[rust.git] / src / test / ui / error-codes / E0186.stderr
1 error[E0186]: method `foo` has a `&self` declaration in the trait, but not in the impl
2   --> $DIR/E0186.rs:8:5
3    |
4 LL |     fn foo(&self);
5    |     -------------- `&self` used in trait
6 ...
7 LL |     fn foo() {}
8    |     ^^^^^^^^ expected `&self` in impl
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0186`.