1 #![allow(unused_variables)]
2 #![allow(unused_assignments)]
4 #![deny(unreachable_code)]
7 if {return} { //~ ERROR unreachable block in `if`
8 println!("Hello, world!");
16 println!("I am not dead.");
25 // As the next action to be taken after the if arms, we should
26 // report the `println!` as unreachable:
27 println!("But I am.");
28 //~^ ERROR unreachable statement