Rust 2015 does not permit the use of async fn.
async fn
Example of erroneous code:
async fn foo() {}
Switch to the Rust 2018 edition to use async fn.