blob: 78391c0e104cc3e26a441fb48491320524f2c2d3 [file] [log] [blame]
// edition:2018
struct S;
impl S {
async fn foo() {} //~ ERROR async fn is unstable
}
trait T {
async fn foo(); //~ ERROR trait fns cannot be declared `async`
//~^ ERROR async fn is unstable
}
async fn foo() {} //~ ERROR async fn is unstable
fn main() {
let _ = async {}; //~ ERROR async blocks are unstable
}