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`
23 macro_rules! accept_item { ($x:item) => {} }
26 async fn foo() {} //~ ERROR `async fn` is not permitted in Rust 2015
31 async fn bar() {} //~ ERROR `async fn` is not permitted in Rust 2015
35 let inside_closure = || {
36 async fn bar() {} //~ ERROR `async fn` is not permitted in Rust 2015