summaryrefslogtreecommitdiffstats
path: root/tests/ui/match/expr-match-panic.rs
blob: 53f8a8bd30ddbb6ea5fa0e4d833b0a70da3ad9fa (plain)
1
2
3
4
5
6
7
8
9
10
// run-fail
// error-pattern:explicit panic
// ignore-emscripten no processes

fn main() {
    let _x = match true {
        false => 0,
        true => panic!(),
    };
}