summary refs log tree commit diff
path: root/src/test/ui/structs/struct-variant-privacy.rs
blob: 8355879e7d94d9d7f1300cf154806f4fd36bd461 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
mod foo {
    enum Bar {
        Baz { a: isize }
    }
}

fn f(b: foo::Bar) { //~ ERROR enum `Bar` is private
    match b {
        foo::Bar::Baz { a: _a } => {} //~ ERROR enum `Bar` is private
    }
}

fn main() {}