Skip to content

E0260 needs to be updated to new format #35515

Closed
@sophiajt

Description

@sophiajt

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

E0260 needs a span_label, updating it from:

error[E0260]: an extern crate named `collections` has already been imported in this module
  --> src/test/compile-fail/E0260.rs:13:1
   |
11 | extern crate collections;
   | ------------------------- previous import of `collections` here
12 | 
13 | mod collections { //~ ERROR E0260
   | ^

To:

error[E0260]: an extern crate named `collections` has already been imported in this module
  --> src/test/compile-fail/E0260.rs:13:1
   |
11 | extern crate collections;
   | ------------------------- previous import of `collections` here
12 | 
13 | mod collections { //~ ERROR E0260
   | ^ `collections` already imported

Bonus: Underline the name of the conflicting definition, if possible:

error[E0260]: an extern crate named `collections` has already been imported in this module
  --> src/test/compile-fail/E0260.rs:13:1
   |
11 | extern crate collections;
   | ------------------------- previous import of `collections` here
12 | 
13 | mod collections { //~ ERROR E0260
   |     ^^^^^^^^^^^ already imported

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lints

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions