Skip to content

Superfluous error message for a private pub use #32708

Closed
@bfops

Description

@bfops

This causes an error:

mod foo {}

mod bar {
  pub use foo; // error: `foo` is private, and cannot be reexported
}

Since foo is no more accessible than it was before, this doesn't seem like an actual instance of E0365.

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