summaryrefslogtreecommitdiffstats
path: root/tests/ui/imports/issue-55884-2.rs
blob: 6f8d0cf8ae2a27121e1ab37f6a4b14188e8b9677 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
mod options {
    pub struct ParseOptions {}
}

mod parser {
    pub use options::*;
    // Private single import shadows public glob import, but arrives too late for initial
    // resolution of `use parser::ParseOptions` because it depends on that resolution itself.
    #[allow(hidden_glob_reexports)]
    use ParseOptions;
}

pub use parser::ParseOptions; //~ ERROR struct import `ParseOptions` is private

fn main() {}