rust/tests/ui/match/match-disc-bot.rs
2023-01-11 09:32:08 +00:00

17 lines
208 B
Rust

// run-fail
// error-pattern:quux
// ignore-emscripten no processes
fn f() -> ! {
panic!("quux")
}
fn g() -> isize {
match f() {
true => 1,
false => 0,
}
}
fn main() {
g();
}