mirror of
https://github.com/rust-lang/rust.git
synced 2026-07-21 23:26:41 -04:00
10 lines
219 B
Rust
10 lines
219 B
Rust
//@ run-fail
|
|
//@ error-pattern:panic evaluated
|
|
//@ needs-subprocess
|
|
|
|
#[allow(unused_variables)]
|
|
fn main() {
|
|
// This used to trigger an LLVM assertion during compilation
|
|
let x = [panic!("panic evaluated"); 2];
|
|
}
|