summaryrefslogtreecommitdiffstats
path: root/src/test/ui/structs-enums/namespaced-enums.rs
blob: 6a2602501a5416194f2c607a499d8022cb66b70e (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

enum Foo {
    A,
    B(isize),
    C { a: isize },
}

fn _foo (f: Foo) {
    match f {
        Foo::A | Foo::B(_) | Foo::C { .. } => {}
    }
}

pub fn main() {}