Error code E0670
Rust 2015 does not permit the use of async fn.
Erroneous code example:
#![allow(unused)]
fn main() {
async fn foo() {}
}
Switch to the Rust 2018 edition to use async fn.
Content-Length: 23666 | pFad | https://doc.rust-lang.org/std/string/../error/../string/../../std/../error_codes/./E0670.html
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
Rust 2015 does not permit the use of async fn.
Erroneous code example:
#![allow(unused)]
fn main() {
async fn foo() {}
}
Switch to the Rust 2018 edition to use async fn.
Fetched URL: https://doc.rust-lang.org/std/string/../error/../string/../../std/../error_codes/./E0670.html
Alternative Proxies: