2019-09-28 09:15:06 -07:00
|
|
|
error: expected identifier, found keyword `async`
|
2020-03-18 13:34:11 +01:00
|
|
|
--> $DIR/edition-keywords-2018-2015-parsing.rs:16:13
|
2018-04-24 01:50:28 +03:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | let mut async = 1;
|
2019-09-28 09:15:06 -07:00
|
|
|
| ^^^^^ expected identifier, found keyword
|
2019-10-23 22:20:58 -07:00
|
|
|
|
|
2022-01-27 14:53:39 -08:00
|
|
|
help: escape `async` to use it as an identifier
|
2018-12-29 17:19:22 -08:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | let mut r#async = 1;
|
2022-01-27 14:53:39 -08:00
|
|
|
| ++
|
2018-04-24 01:50:28 +03:00
|
|
|
|
2019-09-28 09:15:06 -07:00
|
|
|
error: expected identifier, found keyword `async`
|
2020-03-18 13:34:11 +01:00
|
|
|
--> $DIR/edition-keywords-2018-2015-parsing.rs:26:13
|
2018-04-24 01:50:28 +03:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | module::async();
|
2019-09-28 09:15:06 -07:00
|
|
|
| ^^^^^ expected identifier, found keyword
|
2019-10-23 22:20:58 -07:00
|
|
|
|
|
2022-01-27 14:53:39 -08:00
|
|
|
help: escape `async` to use it as an identifier
|
2018-12-29 17:19:22 -08:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | module::r#async();
|
2022-01-27 14:53:39 -08:00
|
|
|
| ++
|
2018-04-24 01:50:28 +03:00
|
|
|
|
|
|
|
error: no rules expected the token `r#async`
|
2020-03-18 13:34:11 +01:00
|
|
|
--> $DIR/edition-keywords-2018-2015-parsing.rs:20:31
|
2018-04-24 01:50:28 +03:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | r#async = consumes_async!(r#async);
|
2018-11-04 14:01:38 -08:00
|
|
|
| ^^^^^^^ no rules expected this token in macro call
|
2022-11-12 23:18:32 +01:00
|
|
|
|
|
|
|
|
note: while trying to match `async`
|
|
|
|
--> $DIR/auxiliary/edition-kw-macro-2015.rs:17:6
|
|
|
|
|
|
|
|
|
LL | (async) => (1)
|
|
|
|
| ^^^^^
|
2018-04-24 01:50:28 +03:00
|
|
|
|
|
|
|
error: no rules expected the token `async`
|
2020-03-18 13:34:11 +01:00
|
|
|
--> $DIR/edition-keywords-2018-2015-parsing.rs:21:35
|
2018-04-24 01:50:28 +03:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | r#async = consumes_async_raw!(async);
|
2018-11-04 14:01:38 -08:00
|
|
|
| ^^^^^ no rules expected this token in macro call
|
2022-11-12 23:18:32 +01:00
|
|
|
|
|
|
|
|
note: while trying to match `r#async`
|
|
|
|
--> $DIR/auxiliary/edition-kw-macro-2015.rs:22:6
|
|
|
|
|
|
|
|
|
LL | (r#async) => (1)
|
|
|
|
| ^^^^^^^
|
2018-04-24 01:50:28 +03:00
|
|
|
|
2018-11-23 15:37:27 -08:00
|
|
|
error: macro expansion ends with an incomplete expression: expected one of `move`, `|`, or `||`
|
2020-02-10 17:37:12 +01:00
|
|
|
--> $DIR/auxiliary/edition-kw-macro-2015.rs:27:23
|
2018-04-24 01:50:28 +03:00
|
|
|
|
|
2020-02-10 17:37:12 +01:00
|
|
|
LL | ($i: ident) => ($i)
|
|
|
|
| ^ expected one of `move`, `|`, or `||`
|
2021-06-10 13:52:00 +02:00
|
|
|
|
|
2020-03-18 13:34:11 +01:00
|
|
|
::: $DIR/edition-keywords-2018-2015-parsing.rs:24:8
|
2018-11-05 16:27:28 -08:00
|
|
|
|
|
|
|
|
LL | if passes_ident!(async) == 1 {}
|
|
|
|
| -------------------- in this macro invocation
|
2018-04-24 01:50:28 +03:00
|
|
|
|
2020-03-18 13:34:11 +01:00
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/edition-keywords-2018-2015-parsing.rs:29:33
|
2020-03-17 08:55:28 +01:00
|
|
|
|
|
2020-03-18 13:34:11 +01:00
|
|
|
LL | let _recovery_witness: () = 0;
|
|
|
|
| -- ^ expected `()`, found integer
|
|
|
|
| |
|
|
|
|
| expected due to this
|
2020-03-17 08:55:28 +01:00
|
|
|
|
|
|
|
error: aborting due to 6 previous errors
|
2018-04-24 01:50:28 +03:00
|
|
|
|
2020-03-18 13:34:11 +01:00
|
|
|
For more information about this error, try `rustc --explain E0308`.
|