]> git.lizzy.rs Git - rust.git/blob - src/test/run-fail/expr-match-panic.rs
Rollup merge of #67564 - Mark-Simulacrum:iter-adapter-panic, r=LukasKalbertodt
[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 }