blob: 556c18c8b28e3f4a764dd9db2214c3a3b4c9b8d0 [file]
// Test for #120601, which causes an ice bug cause of unexpected type
//@ edition:2015
struct T;
struct Tuple(i32);
async fn foo() -> Result<(), ()> {
Unstable2(())
}
//~^^^ ERROR `async fn` is not permitted in Rust 2015
//~^^^ ERROR cannot find function, tuple struct or tuple variant `Unstable2` in this scope
async fn tuple() -> Tuple {
Tuple(1i32)
}
//~^^^ ERROR `async fn` is not permitted in Rust 2015
async fn match_() {
match tuple() {
Tuple(_) => {}
}
}
//~^^^^^ ERROR `async fn` is not permitted in Rust 2015
//~^^^^ ERROR mismatched types
fn main() {}