]> git.lizzy.rs Git - rust.git/blob - src/test/run-fail/expr-if-panic.rs
Use better bound names in `-Zverbose` mode
[rust.git] / src / test / run-fail / expr-if-panic.rs
1 // error-pattern:explicit panic
2
3 fn main() {
4     let _x = if false {
5         0
6     } else if true {
7         panic!()
8     } else {
9         10
10     };
11 }