]> git.lizzy.rs Git - rust.git/blob - src/test/run-fail/expr-match-panic.rs
Auto merge of #67458 - pnkfelix:fix-66530-by-propagating-fatal-error-from-worker...
[rust.git] / src / test / run-fail / expr-match-panic.rs
1 // error-pattern:explicit panic
2
3 fn main() {
4     let _x = match true {
5         false => 0,
6         true => panic!(),
7     };
8 }