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