rust/tests/ui/reachable/expr_again.rs
2023-01-11 09:32:08 +00:00

12 lines
180 B
Rust

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