blob: 7ed1162171f1c8b3487f642bbd0e322a84fe9d83 [file] [log] [blame]
// Test that we can't pass other types for !
#![feature(never_type)]
fn foo(x: !) -> ! {
x
}
fn main() {
foo("wow"); //~ ERROR mismatched types
}