Files
rust/tests/ui/match/match-disc-bot.rs
2025-01-23 20:51:29 +08:00

17 lines
197 B
Rust

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