blob: 5c1300c715128e180a0ebc746fb98dfce7568681 [file] [log] [blame]
// Test that an assignment of type ! makes the rest of the block dead code.
// check-pass
#![warn(unused)]
fn main() {
let x: ! = panic!("aah"); //~ WARN unused
drop(x); //~ WARN unreachable
//~^ WARN unreachable
}