Skip to content

Resolve reports arbitrarily many identical copies of an error message #31402

Closed
@jseyfried

Description

@jseyfried

The following example reports error: bar is private, and cannot be reexported [E0364] four times.

fn bar() {}
pub use bar as baz;

pub use a::*;
mod a { pub use b::foo; }
mod b { pub use c::foo; }
mod c { pub fn foo() {} }

If the glob import is commented out, it only prints the error once.

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