summaryrefslogtreecommitdiffstats
path: root/src/test/ui/binding/match-enum-struct-0.rs
blob: e2623ece84ca59a50762e85eb0947776def9cbb4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// run-pass
#![allow(dead_code)]
// regression test for issue #5625


enum E {
    Foo{f : isize},
    Bar
}

pub fn main() {
    let e = E::Bar;
    match e {
        E::Foo{f: _f} => panic!(),
        _ => (),
    }
}