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

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