rust/tests/ui/panics/while-body-panics.rs

15 lines
193 B
Rust

#![allow(while_true)]
//@ run-fail
//@ error-pattern:quux
//@ needs-subprocess
fn main() {
let _x: isize = {
while true {
panic!("quux");
}
8
};
}