Skip to content

E0186 needs to be updated to new format #35277

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
sophiajt opened this issue Aug 4, 2016 · 1 comment
Closed

E0186 needs to be updated to new format #35277

sophiajt opened this issue Aug 4, 2016 · 1 comment

Comments

@sophiajt
Copy link
Contributor

sophiajt commented Aug 4, 2016

From: src/test/compile-fail/E0186.rs

Error E0186 needs a span_label, updating it from:

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
@yossi-k
Copy link
Contributor

yossi-k commented Aug 4, 2016

On it

sophiajt pushed a commit to sophiajt/rust that referenced this issue Aug 7, 2016
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants