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