]> git.lizzy.rs Git - rust.git/blob - src/test/ui/binding/expr-match-panic-all.rs
Merge commit 'c4416f20dcaec5d93077f72470e83e150fb923b1' into sync-rustfmt
[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 }