summaryrefslogtreecommitdiffstats
path: root/src/test/ui/panics/while-panic.rs
blob: 3c6ee8fa3155e3ddce3de76c4c958294dae7f49c (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"
    });
}