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