]> git.lizzy.rs Git - rust.git/blob - src/test/ui/binding/expr-match-panic-all.rs
Add 'src/tools/rust-analyzer/' from commit '977e12a0bdc3e329af179ef3a9d466af9eb613bb'
[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 }