summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-23354-2.rs
blob: c291d8a5eaf3d743b73fafd89610cb3e4b974229 (plain)
1
2
3
4
5
6
7
8
9
// run-fail
// error-pattern:panic evaluated
// ignore-emscripten no processes

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