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

13 lines
385 B
Plaintext
Raw Normal View History

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"