]> git.lizzy.rs Git - rust.git/blob - src/test/ui/editions/edition-keywords-2018-2018-parsing.stderr
0604b600d23d0095ddfa79e5b644623528beaa39
[rust.git] / src / test / ui / editions / edition-keywords-2018-2018-parsing.stderr
1 error: expected identifier, found reserved keyword `async`
2   --> $DIR/edition-keywords-2018-2018-parsing.rs:8:13
3    |
4 LL |     let mut async = 1;
5    |             ^^^^^ expected identifier, found reserved keyword
6 help: you can escape reserved keywords to use them as identifiers
7    |
8 LL |     let mut r#async = 1;
9    |             ^^^^^^^
10
11 error: expected identifier, found reserved keyword `async`
12   --> $DIR/edition-keywords-2018-2018-parsing.rs:18:13
13    |
14 LL |     module::async();
15    |             ^^^^^ expected identifier, found reserved keyword
16 help: you can escape reserved keywords to use them as identifiers
17    |
18 LL |     module::r#async();
19    |             ^^^^^^^
20
21 error: no rules expected the token `r#async`
22   --> $DIR/edition-keywords-2018-2018-parsing.rs:12:31
23    |
24 LL |     r#async = consumes_async!(r#async);
25    |                               ^^^^^^^ no rules expected this token in macro call
26
27 error: no rules expected the token `async`
28   --> $DIR/edition-keywords-2018-2018-parsing.rs:13:35
29    |
30 LL |     r#async = consumes_async_raw!(async);
31    |                                   ^^^^^ no rules expected this token in macro call
32
33 error: macro expansion ends with an incomplete expression: expected one of `move`, `|`, or `||`
34   --> <::edition_kw_macro_2018::passes_ident macros>:1:25
35    |
36 LL | ( $ i : ident ) => ( $ i )
37    |                         ^ expected one of `move`, `|`, or `||` here
38    | 
39   ::: $DIR/edition-keywords-2018-2018-parsing.rs:16:8
40    |
41 LL |     if passes_ident!(async) == 1 {}
42    |        -------------------- in this macro invocation
43
44 error: aborting due to 5 previous errors
45