2019-09-28 11:15:06 -05:00
|
|
|
error: expected identifier, found keyword `async`
|
2020-03-17 02:55:28 -05:00
|
|
|
--> $DIR/edition-keywords-2018-2015-parsing.rs:14:13
|
2018-04-23 17:50:28 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | let mut async = 1;
|
2019-09-28 11:15:06 -05:00
|
|
|
| ^^^^^ expected identifier, found keyword
|
2019-10-24 00:20:58 -05:00
|
|
|
|
|
2018-12-29 19:19:22 -06:00
|
|
|
help: you can escape reserved keywords to use them as identifiers
|
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | let mut r#async = 1;
|
2018-12-29 19:19:22 -06:00
|
|
|
| ^^^^^^^
|
2018-04-23 17:50:28 -05:00
|
|
|
|
2019-09-28 11:15:06 -05:00
|
|
|
error: expected identifier, found keyword `async`
|
2020-03-17 02:55:28 -05:00
|
|
|
--> $DIR/edition-keywords-2018-2015-parsing.rs:24:13
|
2018-04-23 17:50:28 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | module::async();
|
2019-09-28 11:15:06 -05:00
|
|
|
| ^^^^^ expected identifier, found keyword
|
2019-10-24 00:20:58 -05:00
|
|
|
|
|
2018-12-29 19:19:22 -06:00
|
|
|
help: you can escape reserved keywords to use them as identifiers
|
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | module::r#async();
|
2018-12-29 19:19:22 -06:00
|
|
|
| ^^^^^^^
|
2018-04-23 17:50:28 -05:00
|
|
|
|
|
|
|
error: no rules expected the token `r#async`
|
2020-03-17 02:55:28 -05:00
|
|
|
--> $DIR/edition-keywords-2018-2015-parsing.rs:18:31
|
2018-04-23 17:50:28 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | r#async = consumes_async!(r#async);
|
2018-11-04 16:01:38 -06:00
|
|
|
| ^^^^^^^ no rules expected this token in macro call
|
2018-04-23 17:50:28 -05:00
|
|
|
|
|
|
|
error: no rules expected the token `async`
|
2020-03-17 02:55:28 -05:00
|
|
|
--> $DIR/edition-keywords-2018-2015-parsing.rs:19:35
|
2018-04-23 17:50:28 -05:00
|
|
|
|
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | r#async = consumes_async_raw!(async);
|
2018-11-04 16:01:38 -06:00
|
|
|
| ^^^^^ no rules expected this token in macro call
|
2018-04-23 17:50:28 -05:00
|
|
|
|
2018-11-23 17:37:27 -06:00
|
|
|
error: macro expansion ends with an incomplete expression: expected one of `move`, `|`, or `||`
|
2020-02-10 10:37:12 -06:00
|
|
|
--> $DIR/auxiliary/edition-kw-macro-2015.rs:27:23
|
2018-04-23 17:50:28 -05:00
|
|
|
|
|
2020-02-10 10:37:12 -06:00
|
|
|
LL | ($i: ident) => ($i)
|
|
|
|
| ^ expected one of `move`, `|`, or `||`
|
2018-11-05 18:27:28 -06:00
|
|
|
|
|
2020-03-17 02:55:28 -05:00
|
|
|
::: $DIR/edition-keywords-2018-2015-parsing.rs:22:8
|
2018-11-05 18:27:28 -06:00
|
|
|
|
|
|
|
|
LL | if passes_ident!(async) == 1 {}
|
|
|
|
| -------------------- in this macro invocation
|
2018-04-23 17:50:28 -05:00
|
|
|
|
2020-03-17 02:55:28 -05:00
|
|
|
error[E0658]: async closures are unstable
|
|
|
|
--> $DIR/edition-keywords-2018-2015-parsing.rs:22:22
|
|
|
|
|
|
|
|
|
LL | if passes_ident!(async) == 1 {}
|
|
|
|
| ^^^^^
|
|
|
|
|
|
|
|
|
= note: see issue #62290 <https://github.com/rust-lang/rust/issues/62290> for more information
|
|
|
|
= help: add `#![feature(async_closure)]` to the crate attributes to enable
|
|
|
|
|
|
|
|
error: aborting due to 6 previous errors
|
2018-04-23 17:50:28 -05:00
|
|
|
|
2020-03-17 02:55:28 -05:00
|
|
|
For more information about this error, try `rustc --explain E0658`.
|