3 async fn foo() {} //~ ERROR `async fn` is not permitted in Rust 2015
5 fn baz() { async fn foo() {} } //~ ERROR `async fn` is not permitted in Rust 2015
7 async fn async_baz() { //~ ERROR `async fn` is not permitted in Rust 2015
8 async fn bar() {} //~ ERROR `async fn` is not permitted in Rust 2015
14 async fn foo() {} //~ ERROR `async fn` is not permitted in Rust 2015
18 async fn foo() {} //~ ERROR `async fn` is not permitted in Rust 2015
19 //~^ ERROR functions in traits cannot be declared `async`
20 //~| ERROR mismatched types
24 macro_rules! accept_item { ($x:item) => {} }
27 async fn foo() {} //~ ERROR `async fn` is not permitted in Rust 2015
32 async fn bar() {} //~ ERROR `async fn` is not permitted in Rust 2015
36 let inside_closure = || {
37 async fn bar() {} //~ ERROR `async fn` is not permitted in Rust 2015