rust/tests/ui/error-codes/E0004.rs

13 lines
193 B
Rust

enum Terminator {
HastaLaVistaBaby,
TalkToMyHand,
}
fn main() {
let x = Terminator::HastaLaVistaBaby;
match x { //~ ERROR E0004
Terminator::TalkToMyHand => {}
}
}