summaryrefslogtreecommitdiffstats
path: root/tests/ui/match/match-arm-resolving-to-never.rs
blob: 6ef249c05247e390231ce8fa98d7d9a8a0b97bbf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
enum E {
    A,
    B,
    C,
    D,
    E,
    F,
}

fn main() {
    match E::F {
        E::A => 1,
        E::B => 2,
        E::C => 3,
        E::D => 4,
        E::E => unimplemented!(""),
        E::F => "", //~ ERROR `match` arms have incompatible types
    };
}