Skip to content

E0403 needs to be updated to new format #35696

Description

@sophiajt

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

E0403 needs a span_label, updating it from:

error[E0403]: the name `T` is already used for a type parameter in this type parameter list
  --> src/test/compile-fail/E0403.rs:11:11
   |
11 | fn foo<T, T>(s: T, u: T) {} //~ ERROR E0403
   |           ^

To:

error[E0403]: the name `T` is already used for a type parameter in this type parameter list
  --> src/test/compile-fail/E0403.rs:11:11
   |
11 | fn foo<T, T>(s: T, u: T) {} //~ ERROR E0403
   |           ^ already used

Bonus: Add a span_label for the conflicting first use:

error[E0403]: the name `T` is already used for a type parameter in this type parameter list
  --> src/test/compile-fail/E0403.rs:11:11
   |
11 | fn foo<T, T>(s: T, u: T) {} //~ ERROR E0403
   |        -  ^ already used
   |        |
   |        first use of `T` 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions