]> git.proxmox.com Git - rustc.git/blame - src/test/ui/editions/edition-keywords-2018-2015-parsing.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / editions / edition-keywords-2018-2015-parsing.stderr
CommitLineData
e1599b0c 1error: expected identifier, found keyword `async`
0731742a 2 --> $DIR/edition-keywords-2018-2015-parsing.rs:8:13
94b46f34 3 |
532ac7d7 4LL | let mut async = 1;
e1599b0c 5 | ^^^^^ expected identifier, found keyword
e74abb32 6 |
0731742a
XL
7help: you can escape reserved keywords to use them as identifiers
8 |
532ac7d7 9LL | let mut r#async = 1;
0731742a 10 | ^^^^^^^
94b46f34 11
e1599b0c 12error: expected identifier, found keyword `async`
0731742a 13 --> $DIR/edition-keywords-2018-2015-parsing.rs:18:13
94b46f34 14 |
532ac7d7 15LL | module::async();
e1599b0c 16 | ^^^^^ expected identifier, found keyword
e74abb32 17 |
0731742a
XL
18help: you can escape reserved keywords to use them as identifiers
19 |
532ac7d7 20LL | module::r#async();
0731742a 21 | ^^^^^^^
94b46f34
XL
22
23error: no rules expected the token `r#async`
0731742a 24 --> $DIR/edition-keywords-2018-2015-parsing.rs:12:31
94b46f34 25 |
532ac7d7 26LL | r#async = consumes_async!(r#async);
a1dfa0c6 27 | ^^^^^^^ no rules expected this token in macro call
94b46f34
XL
28
29error: no rules expected the token `async`
0731742a 30 --> $DIR/edition-keywords-2018-2015-parsing.rs:13:35
94b46f34 31 |
532ac7d7 32LL | r#async = consumes_async_raw!(async);
a1dfa0c6 33 | ^^^^^ no rules expected this token in macro call
94b46f34 34
a1dfa0c6 35error: 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 38LL | ($ 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 |
43LL | if passes_ident!(async) == 1 {}
44 | -------------------- in this macro invocation
94b46f34
XL
45
46error: aborting due to 5 previous errors
47