about summary refs log tree commit diff
path: root/tests/ui/expr/if/expr-if-panic.rs
blob: 2f35878e844d1a7d4472c0409ee5ea8ef675c6fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//@ run-fail
//@ error-pattern:explicit panic
//@ needs-subprocess

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