]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_error_codes/src/error_codes/E0670.md
Rollup merge of #93556 - dtolnay:trailingcomma, r=cjgillot
[rust.git] / compiler / rustc_error_codes / src / error_codes / E0670.md
1 Rust 2015 does not permit the use of `async fn`.
2
3 Erroneous code example:
4
5 ```compile_fail,E0670
6 async fn foo() {}
7 ```
8
9 Switch to the Rust 2018 edition to use `async fn`.