Skip to content

E0263 needs to be updated to new format #35518

Closed
@sophiajt

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

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