rust/src/test/ui/editions/edition-keywords-2015-2018-expansion.stderr

15 lines
492 B
Plaintext
Raw Normal View History

error: expected identifier, found keyword `async`
2018-12-25 15:56:47 +00:00
--> $DIR/edition-keywords-2015-2018-expansion.rs:8:5
2018-04-23 22:50:28 +00:00
|
2019-03-09 12:03:44 +00:00
LL | produces_async! {}
| ^^^^^^^^^^^^^^^^^^ expected identifier, found keyword
2018-04-23 22:50:28 +00:00
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
help: you can escape reserved keywords to use them as identifiers
|
LL | () => (pub fn r#async() {})
| ^^^^^^^
2018-04-23 22:50:28 +00:00
error: aborting due to previous error