blob: 120df61b4bfe602a33bd5afe720a160049e5d0a7 [file] [log] [blame]
// error-pattern:explicit panic
fn f() -> ! {
panic!()
}
fn g() -> isize {
let x = match true {
true => f(),
false => 10,
};
return x;
}
fn main() {
g();
}