]>
Commit | Line | Data |
---|---|---|
e1599b0c | 1 | error: expected identifier, found keyword `async` |
0731742a | 2 | --> $DIR/edition-keywords-2018-2015-parsing.rs:8:13 |
94b46f34 | 3 | | |
532ac7d7 | 4 | LL | let mut async = 1; |
e1599b0c | 5 | | ^^^^^ expected identifier, found keyword |
e74abb32 | 6 | | |
0731742a XL |
7 | help: you can escape reserved keywords to use them as identifiers |
8 | | | |
532ac7d7 | 9 | LL | let mut r#async = 1; |
0731742a | 10 | | ^^^^^^^ |
94b46f34 | 11 | |
e1599b0c | 12 | error: expected identifier, found keyword `async` |
0731742a | 13 | --> $DIR/edition-keywords-2018-2015-parsing.rs:18:13 |
94b46f34 | 14 | | |
532ac7d7 | 15 | LL | module::async(); |
e1599b0c | 16 | | ^^^^^ expected identifier, found keyword |
e74abb32 | 17 | | |
0731742a XL |
18 | help: you can escape reserved keywords to use them as identifiers |
19 | | | |
532ac7d7 | 20 | LL | module::r#async(); |
0731742a | 21 | | ^^^^^^^ |
94b46f34 XL |
22 | |
23 | error: no rules expected the token `r#async` | |
0731742a | 24 | --> $DIR/edition-keywords-2018-2015-parsing.rs:12:31 |
94b46f34 | 25 | | |
532ac7d7 | 26 | LL | r#async = consumes_async!(r#async); |
a1dfa0c6 | 27 | | ^^^^^^^ no rules expected this token in macro call |
94b46f34 XL |
28 | |
29 | error: no rules expected the token `async` | |
0731742a | 30 | --> $DIR/edition-keywords-2018-2015-parsing.rs:13:35 |
94b46f34 | 31 | | |
532ac7d7 | 32 | LL | r#async = consumes_async_raw!(async); |
a1dfa0c6 | 33 | | ^^^^^ no rules expected this token in macro call |
94b46f34 | 34 | |
a1dfa0c6 | 35 | error: macro expansion ends with an incomplete expression: expected one of `move`, `|`, or `||` |
416331ca | 36 | --> <::edition_kw_macro_2015::passes_ident macros>:1:22 |
94b46f34 | 37 | | |
416331ca | 38 | LL | ($ i : ident) => ($ i) |
60c5eb7d | 39 | | ^ expected one of `move`, `|`, or `||` |
a1dfa0c6 | 40 | | |
0731742a | 41 | ::: $DIR/edition-keywords-2018-2015-parsing.rs:16:8 |
a1dfa0c6 XL |
42 | | |
43 | LL | if passes_ident!(async) == 1 {} | |
44 | | -------------------- in this macro invocation | |
94b46f34 XL |
45 | |
46 | error: aborting due to 5 previous errors | |
47 |