]> git.lizzy.rs Git - rust.git/blob - src/librustc_error_codes/error_codes/E0670.md
Spell check librustc_error_codes
[rust.git] / src / librustc_error_codes / error_codes / E0670.md
1 Rust 2015 does not permit the use of `async fn`.
2
3 Example of erroneous code:
4
5 ```compile_fail,E0670
6 async fn foo() {}
7 ```
8
9 Switch to the Rust 2018 edition to use `async fn`.