rust/tests/ui/match/match-arm-resolving-to-never.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
271 B
Rust
Raw Normal View History

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!(""),
2020-01-04 18:17:46 -06:00
E::F => "", //~ ERROR `match` arms have incompatible types
};
}