summary refs log tree commit diff
path: root/src/test/ui/structs/struct-variant-privacy-xc.rs
blob: 10e9639096f0f3d0a17bb57c0e8fc8f7809bb32d (plain)
1
2
3
4
5
6
7
8
9
10
// aux-build:struct_variant_privacy.rs
extern crate struct_variant_privacy;

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

fn main() {}