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
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | fn foo();
|
2018-02-07 21:35:35 -06:00
|
|
|
| --------- trait method declared without `&self`
|
|
|
|
...
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | fn foo(&self) {}
|
2018-02-07 21:35:35 -06:00
|
|
|
| ^^^^^^^^^^^^^ `&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"
|