Skip to content

can reach pub items within priv mods #5129

Description

@ben0x539

I'm not sure I entirely grok visibility rules, but the following seems to compile when I don't think it should.

priv mod foo {
    priv mod bar {
        pub fn f() {}
    }   
}   

fn main() {
    foo::bar::f();
}   

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-resolveArea: Name/path resolution done by `rustc_resolve` specifically

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions