blob: 2ee48e7bc4762e6a55c50510ee09e906a8e53cde [file] [log] [blame]
// Test that return another type in place of ! raises a type mismatch.
fn fail() -> ! {
return "wow"; //~ ERROR mismatched types
}
fn main() {
}