2018-02-07 21:35:35 -06:00
|
|
|
error[E0185]: method `foo` has a `&self` declaration in the impl, but not in the trait
|
|
|
|
--> $DIR/E0185.rs:19:5
|
|
|
|
|
|
|
|
|
12 | fn foo();
|
|
|
|
| --------- trait method declared without `&self`
|
|
|
|
...
|
|
|
|
19 | fn foo(&self) {}
|
|
|
|
| ^^^^^^^^^^^^^ `&self` used in impl
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
2018-02-19 14:40:25 -06:00
|
|
|
If you want more information on this error, try using "rustc --explain E0185"
|