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

//@ run-fail
//@ error-pattern:giraffe
//@ needs-subprocess

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