blob: d21a43ec5c50a778322c7ab2391070779fcbf006 [file] [log] [blame]
// Test that we can use a ! for an argument of type !
// error-pattern:wowzers!
#![feature(never_type)]
#![allow(unreachable_code)]
fn foo(x: !) -> ! {
x
}
fn main() {
foo(panic!("wowzers!"))
}