]> git.lizzy.rs Git - rust.git/blob - src/test/ui/binding/expr-match-panic-all.rs
Auto merge of #99612 - yanchen4791:issue-95079-fix, r=compiler-errors
[rust.git] / src / test / ui / binding / expr-match-panic-all.rs
1 // run-pass
2
3
4
5 // When all branches of a match expression result in panic, the entire
6 // match expression results in panic.
7
8 pub fn main() {
9     let _x =
10         match true {
11           true => { 10 }
12           false => { match true { true => { panic!() } false => { panic!() } } }
13         };
14 }