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