]> git.proxmox.com Git - rustc.git/blame - src/test/ui/editions/edition-keywords-2018-2018-parsing.stderr
New upstream version 1.44.1+dfsg1
[rustc.git] / src / test / ui / editions / edition-keywords-2018-2018-parsing.stderr
CommitLineData
e1599b0c 1error: expected identifier, found keyword `async`
ba9703b0 2 --> $DIR/edition-keywords-2018-2018-parsing.rs:16: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`
ba9703b0 13 --> $DIR/edition-keywords-2018-2018-parsing.rs:26: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`
ba9703b0 24 --> $DIR/edition-keywords-2018-2018-parsing.rs:20: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`
ba9703b0 30 --> $DIR/edition-keywords-2018-2018-parsing.rs:21: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 `||`
ba9703b0 36 --> $DIR/auxiliary/edition-kw-macro-2018.rs:27:23
94b46f34 37 |
ba9703b0
XL
38LL | ($i: ident) => ($i)
39 | ^ expected one of `move`, `|`, or `||`
a1dfa0c6 40 |
ba9703b0 41 ::: $DIR/edition-keywords-2018-2018-parsing.rs:24:8
a1dfa0c6
XL
42 |
43LL | if passes_ident!(async) == 1 {}
44 | -------------------- in this macro invocation
94b46f34 45
ba9703b0
XL
46error[E0308]: mismatched types
47 --> $DIR/edition-keywords-2018-2018-parsing.rs:29:33
48 |
49LL | let _recovery_witness: () = 0;
50 | -- ^ expected `()`, found integer
51 | |
52 | expected due to this
53
54error: aborting due to 6 previous errors
94b46f34 55
ba9703b0 56For more information about this error, try `rustc --explain E0308`.