Sign in
rust
/
rust
/
8eb7c58dbb7b32701af113bc58722d0d1fefb1eb
/
.
/
src
/
librustc_error_codes
/
error_codes
/
E0670.md
blob: 2026370bec3b8717a7bb8fdd4951b6ba3e296fee [
file
] [
view
]
Rust
2015
does
not
permit the
use
of
`async fn`
.
Example
of erroneous code
:
```compile_fail,E0670
async fn foo() {}
```
Switch
to the
Rust
2018
edition to
use
`async fn`
.