summary refs log tree commit diff
path: root/src/test/run-fail/expr-if-panic.rs
blob: 36aaf459a56eeec0dba5b0754d3bab3773ea5672 (plain)
1
2
3
4
5
6
7
8
9
10
11
// error-pattern:explicit panic

fn main() {
    let _x = if false {
        0
    } else if true {
        panic!()
    } else {
        10
    };
}