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