1 2 3 4 5 6 7 8
// Test that return another type in place of ! raises a type mismatch. fn fail() -> ! { return "wow"; //~ ERROR mismatched types } fn main() { }