Skip to content

Re-exporting through super doesn't work #7809

Closed
@catamorphism

Description

@catamorphism

Test case:

pub mod bar {
    fn f() {}
}

mod foo {
    use super::bar;

    pub mod bar;
}

fn main() {}

Error:

rustc ~/Scratch/super-mod.rs
/Users/tjc/Scratch/super-mod.rs:8:12: 8:15 error: error opening /Users/tjc/Scratch/foo/bar.rs
/Users/tjc/Scratch/super-mod.rs:8     pub mod bar;
                                              ^~~

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