mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-30 03:57:37 +00:00
14 lines
185 B
Rust
14 lines
185 B
Rust
//@ run-fail
|
|
//@ error-pattern:explicit panic
|
|
//@ needs-subprocess
|
|
|
|
fn main() {
|
|
let _x = if false {
|
|
0
|
|
} else if true {
|
|
panic!()
|
|
} else {
|
|
10
|
|
};
|
|
}
|