summaryrefslogtreecommitdiffstats
path: root/src/test/ui/lint/dead-code/enum-variants.rs
blob: 91c97232eedb1c5b6d0fb85567e98312c03f1e54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// run-pass

#![deny(dead_code)]

enum Foo {
    A,
    B,
}

pub fn main() {
    match Foo::A {
        Foo::A | Foo::B => Foo::B
    };
}