rust/tests/ui/match/match-disc-bot.rs
2024-02-16 20:02:50 +00:00

16 lines
211 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();
}