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

#[allow(unused_variables)]
fn main() {
    let x = [panic!("panic evaluated"); 0];
}