fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

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