1 2 3 4 5 6 7
#![deny(unreachable_code)] fn main() { let x = || -> ! { panic!() }; x(); println!("Foo bar"); //~ ERROR: unreachable statement }