]> git.proxmox.com Git - rustc.git/blame - src/librustc_error_codes/error_codes/E0670.md
New upstream version 1.47.0+dfsg1
[rustc.git] / src / librustc_error_codes / error_codes / E0670.md
CommitLineData
60c5eb7d
XL
1Rust 2015 does not permit the use of `async fn`.
2
f035d41b 3Erroneous code example:
60c5eb7d
XL
4
5```compile_fail,E0670
6async fn foo() {}
7```
8
9Switch to the Rust 2018 edition to use `async fn`.