blob: b6ab8ae0a9bc7c6b4a27f080194d07dc8e674bf6 [file] [log] [blame]
// edition:2015
#![feature(futures_api)]
async fn foo() {} //~ ERROR `async fn` is not permitted in the 2015 edition
//~^ ERROR async fn is unstable
fn main() {
let _ = async {}; //~ ERROR cannot find struct, variant or union type `async`
let _ = async || { true }; //~ ERROR cannot find value `async` in this scope
}