rust/src/test/ui/reachable/expr_again.rs
2018-12-25 21:08:33 -07:00

12 lines
203 B
Rust

#![feature(box_syntax)]
#![allow(unused_variables)]
#![deny(unreachable_code)]
fn main() {
let x = loop {
continue;
println!("hi");
//~^ ERROR unreachable statement
};
}