]> git.lizzy.rs Git - rust.git/blob - src/test/ui/traits/staticness-mismatch.stderr
Add 'src/tools/rust-analyzer/' from commit '977e12a0bdc3e329af179ef3a9d466af9eb613bb'
[rust.git] / src / test / ui / traits / staticness-mismatch.stderr
1 error[E0185]: method `bar` has a `&self` declaration in the impl, but not in the trait
2   --> $DIR/staticness-mismatch.rs:7:5
3    |
4 LL |     fn bar();
5    |     --------- trait method declared without `&self`
6 ...
7 LL |     fn bar(&self) {}
8    |     ^^^^^^^^^^^^^ `&self` used in impl
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0185`.