summaryrefslogtreecommitdiffstats
path: root/src/test/ui/error-codes/E0004.rs
blob: 1ee9d2bad14ff90dabfa9e6b97bdb62d89bb4c48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
enum Terminator {
    HastaLaVistaBaby,
    TalkToMyHand,
}

fn main() {
    let x = Terminator::HastaLaVistaBaby;

    match x { //~ ERROR E0004
        Terminator::TalkToMyHand => {}
    }
}