You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error[E0186]: method `foo` has a `&self` declaration in the trait, but not in the impl
--> src/test/compile-fail/E0186.rs:18:5
|
18 | fn foo() {} //~ ERROR E0186
| ^^^^^^^^^^^
To:
error[E0186]: method `foo` has a `&self` declaration in the trait, but not in the impl
--> src/test/compile-fail/E0186.rs:18:5
|
18 | fn foo() {} //~ ERROR E0186
| ^^^^^^^^^^^ expected `&self` in impl
Bonus: show the trait line as well
error[E0186]: method `foo` has a `&self` declaration in the trait, but not in the impl
--> src/test/compile-fail/E0186.rs:18:5
|
12 | fn foo(&self);
| -------------- `&self` used in trait
...
18 | fn foo() {} //~ ERROR E0186
| ^^^^^^^^^^^ expected `&self` in impl
The text was updated successfully, but these errors were encountered:
From: src/test/compile-fail/E0186.rs
Error E0186 needs a span_label, updating it from:
To:
Bonus: show the trait line as well
The text was updated successfully, but these errors were encountered: