blob: 4ee06787c7d87501f1018a1ec37e36d280b666ca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
error[E0186]: method `bar` has a `&self` declaration in the trait, but not in the impl
--> $DIR/trait-impl-self-mismatch.rs:12:5
|
LL | fn bar(&self) {}
| ------------- `&self` used in trait
...
LL | fn bar() {
| ^^^^^^^^ expected `&self` in impl
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0186`.
|