rust/src/test/run-fail/expr-match-panic.rs
2018-12-25 21:08:33 -07:00

8 lines
126 B
Rust

// error-pattern:explicit panic
fn main() {
let _x = match true {
false => 0,
true => panic!(),
};
}