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

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

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