summaryrefslogtreecommitdiffstats
path: root/tests/ui/structs-enums/struct-variant-field-visibility.rs
blob: 7896c829a6e1fb8362f8fb75938169ab6733a3a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// run-pass
#![allow(dead_code)]
// pretty-expanded FIXME #23616

mod foo {
    pub enum Foo {
        Bar { a: isize }
    }
}

fn f(f: foo::Foo) {
    match f {
        foo::Foo::Bar { a: _a } => {}
    }
}

pub fn main() {}