Error code E0670

Rust 2015 does not permit the use of async fn.

Erroneous code example:

async fn foo() {}
Run

Switch to the Rust 2018 edition to use async fn.

Back to list of error codes