rust/src/test/ui/error-codes/E0186.stderr

13 lines
415 B
Plaintext
Raw Normal View History

2018-02-07 21:35:35 -06:00
error[E0186]: method `foo` has a `&self` declaration in the trait, but not in the impl
--> $DIR/E0186.rs:18:5
|
2018-02-22 18:42:32 -06:00
LL | fn foo(&self); //~ `&self` used in trait
2018-02-07 21:35:35 -06:00
| -------------- `&self` used in trait
...
2018-02-22 18:42:32 -06:00
LL | fn foo() {} //~ ERROR E0186
2018-02-07 21:35:35 -06:00
| ^^^^^^^^ expected `&self` 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 E0186"