Skip to content

E0186 needs to be updated to new format #35277

Description

@sophiajt

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

Activity

  1. yossi-k commented on Aug 4, 2016

    @yossi-k
    Contributor

    On it

  2. added a commit that references this issue on Aug 7, 2016
    f9f6fd4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions