blob: d06637e74a2f26b9da61b538f2f89c8d0eead623 [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
}