rust/src/test/run-fail/issue-23354-2.rs
2018-12-25 21:08:33 -07:00

8 lines
184 B
Rust

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