3 async fn foo() {} //~ ERROR `async fn` is not permitted in the 2015 edition
5 fn baz() { async fn foo() {} } //~ ERROR `async fn` is not permitted in the 2015 edition
7 async fn async_baz() { //~ ERROR `async fn` is not permitted in the 2015 edition
8 async fn bar() {} //~ ERROR `async fn` is not permitted in the 2015 edition
14 async fn foo() {} //~ ERROR `async fn` is not permitted in the 2015 edition
18 async fn foo() {} //~ ERROR `async fn` is not permitted in the 2015 edition
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 the 2015 edition
31 async fn bar() {} //~ ERROR `async fn` is not permitted in the 2015 edition
35 let inside_closure = || {
36 async fn bar() {} //~ ERROR `async fn` is not permitted in the 2015 edition