Skip to content

E0263 needs to be updated to new format #35518

Description

@sophiajt

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

E0263 needs a span_label, updating it from:

error[E0263]: lifetime name `'a` declared twice in the same scope
  --> src/test/compile-fail/E0263.rs:11:16
   |
11 | fn foo<'a, 'b, 'a>(x: &'a str, y: &'b str) { } //~ ERROR E0263
   |                ^^

To:

error[E0263]: lifetime name `'a` declared twice in the same scope
  --> src/test/compile-fail/E0263.rs:11:16
   |
11 | fn foo<'a, 'b, 'a>(x: &'a str, y: &'b str) { } //~ ERROR E0263
   |                ^^ declared twice

Bonus: underline and label the previous declaration:

error[E0263]: lifetime name `'a` declared twice in the same scope
  --> src/test/compile-fail/E0263.rs:11:16
   |
11 | fn foo<'a, 'b, 'a>(x: &'a str, y: &'b str) { } //~ ERROR E0263
   |        --      ^^ declared twice
   |        |
   |        previous declaration here

Activity

  1. Limeth commented on Aug 8, 2016

    @Limeth

    I'm on it.

  2. added a commit that references this issue on Aug 10, 2016
    11a6619
  3. added 2 commits that reference this issue on Aug 10, 2016
    38bf90f
    aaed538
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