summaryrefslogtreecommitdiffstats
path: root/tests/ui/privacy/export-tag-variant.rs
blob: 46c10067ce20ce061014ce50ccb245e18c8234f0 (plain)
1
2
3
4
5
6
7
mod foo {
    pub fn x() { }

    enum Y { Y1 }
}

fn main() { let z = foo::Y::Y1; } //~ ERROR: enum `Y` is private