summary refs log tree commit diff
path: root/src/test/ui/panics/while-panic.rs
blob: 857f65a2252285b7fb4ecd58dd2bbdf1589cf859 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#![allow(while_true)]

// run-fail
// error-pattern:giraffe
// ignore-emscripten no processes

fn main() {
    panic!({
        while true {
            panic!("giraffe")
        }
        "clandestine"
    });
}