]> git.lizzy.rs Git - rust.git/blob - tests/ui/match/match-disc-bot.rs
Rollup merge of #107074 - lcnr:validate-dont-skip-opaque, r=compiler-errors
[rust.git] / tests / ui / match / match-disc-bot.rs
1 // run-fail
2 // error-pattern:quux
3 // ignore-emscripten no processes
4
5 fn f() -> ! {
6     panic!("quux")
7 }
8 fn g() -> isize {
9     match f() {
10         true => 1,
11         false => 0,
12     }
13 }
14 fn main() {
15     g();
16 }