about summary refs log tree commit diff
path: root/tests/ui/structs-enums/namespaced-enums.rs
blob: 3e2e0b5ffa8fdb3fcc664a8eeca4a8d3ff170061 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//@ run-pass
#![allow(dead_code)]

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

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

pub fn main() {}