rust/tests/ui/match/expr-match-panic.rs

11 lines
161 B
Rust
Raw Normal View History

//@ run-fail
//@ error-pattern:explicit panic
//@ needs-subprocess
2011-05-13 18:42:23 +00:00
2016-05-27 02:39:36 +00:00
fn main() {
let _x = match true {
false => 0,
true => panic!(),
};
}