Skip to content

E0201 needs to be updated to new format #35304

Closed
@sophiajt

Description

@sophiajt

From: src/test/compile-fail/associated-item-duplicate-names-3.rs

Error E0201 needs a span_note replaced with a span_label and needs span_labels, updating this:

error[E0201]: duplicate definitions with name `Bar`:
  --> src/test/compile-fail/associated-item-duplicate-names-3.rs:23:5
   |
23 |     type Bar = u16; //~ ERROR duplicate definitions
   |     ^^^^^^^^^^^^^^^
   |
note: previous definition of `Bar` here
  --> src/test/compile-fail/associated-item-duplicate-names-3.rs:22:5
   |
22 |     type Bar = i16;
   |     ^^^^^^^^^^^^^^^

To:

error[E0201]: duplicate definitions with name `Bar`:
  --> src/test/compile-fail/associated-item-duplicate-names-3.rs:23:5
   |
22 |     type Bar = i16;
   |     --------------- first definition of `Bar`
23 |     type Bar = u16; //~ ERROR duplicate definitions
   |     ^^^^^^^^^^^^^^^ duplicate definition

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions