summaryrefslogtreecommitdiffstats
path: root/src/test/ui/panics/while-body-panics.rs
blob: 2c05eb389ccfe6b46fbb7d6b789aed1e29e47ba6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#![allow(while_true)]

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

fn main() {
    let _x: isize = {
        while true {
            panic!("quux");
        }
        8
    };
}