Skip to content

rustc doesn't forbid unnecessary visibility specifiers on view items #9957

Closed
@sfackler

Description

@sfackler

Things like this are not rejected by the compiler, though the probably should be

priv extern mod foo;
pub extern mod foo;

priv use foo;

pub extern mod foo could make sense if it exported foo, but it doesn't currently.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions