mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
41e8d152dc
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
15 lines
541 B
Text
15 lines
541 B
Text
error: expected identifier, found keyword `async`
|
|
--> $DIR/edition-keywords-2018-2018-expansion.rs:8:5
|
|
|
|
|
LL | produces_async! {}
|
|
| ^^^^^^^^^^^^^^^^^^ expected identifier, found keyword
|
|
|
|
|
= note: this error originates in the macro `produces_async` (in Nightly builds, run with -Z macro-backtrace for more info)
|
|
help: escape `async` to use it as an identifier
|
|
--> $DIR/auxiliary/edition-kw-macro-2018.rs:7:19
|
|
|
|
|
LL | () => (pub fn r#async() {})
|
|
| ++
|
|
|
|
error: aborting due to 1 previous error
|
|
|