mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 07:44:10 +00:00
12 lines
180 B
Rust
12 lines
180 B
Rust
#![allow(unused_variables)]
|
|
|
|
#![deny(unreachable_code)]
|
|
|
|
fn main() {
|
|
let x = loop {
|
|
continue;
|
|
println!("hi");
|
|
//~^ ERROR unreachable statement
|
|
};
|
|
}
|