Skip to content

E0365 needs to be updated to new format #35633

Closed
@sophiajt

Description

@sophiajt

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

E0365 needs a span_label and a span_note changed to a note, updating it from:

error[E0365]: `foo` is private, and cannot be reexported
  --> src/test/compile-fail/E0365.rs:15:9
   |
15 | pub use foo as foo2; //~ ERROR E0365
   |         ^^^^^^^^^^^
   |
note: consider declaring type or module `foo` with `pub`
  --> src/test/compile-fail/E0365.rs:15:9
   |
15 | pub use foo as foo2; //~ ERROR E0365
   |         ^^^^^^^^^^^

To:

error[E0365]: `foo` is private, and cannot be reexported
  --> src/test/compile-fail/E0365.rs:15:9
   |
15 | pub use foo as foo2; //~ ERROR E0365
   |         ^^^^^^^^^^^ reexport of private `foo`
   |
   = note: consider declaring type or module `foo` with `pub`

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