rust/src/test/run-fail/issue-23354-2.rs

8 lines
184 B
Rust
Raw Normal View History

// error-pattern:panic evaluated
#[allow(unused_variables)]
fn main() {
// This used to trigger an LLVM assertion during compilation
let x = [panic!("panic evaluated"); 2];
}