mirror of
https://git.proxmox.com/git/rustc
synced 2025-05-22 12:16:47 +00:00
8 lines
143 B
Rust
8 lines
143 B
Rust
#![deny(unreachable_code)]
|
|
|
|
fn main() {
|
|
let x = || -> ! { panic!() };
|
|
x();
|
|
println!("Foo bar"); //~ ERROR: unreachable statement
|
|
}
|