summary refs log tree commit diff
path: root/src/test/run-fail/while-body-panics.rs
blob: 76acb4ba42de4d9467cdaa5f53654189b5bf6cec (plain)
1
2
3
4
5
6
7
8
9
10
11
#![allow(while_true)]

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