]> git.lizzy.rs Git - rust.git/blob - tests/ui/traits/staticness-mismatch.stderr
Auto merge of #105716 - chriswailes:ndk-update-redux, r=pietroalbini
[rust.git] / tests / 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`.