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.8 KiB58 linesraw
1error: expected identifier, found keyword `await`
2  --> $DIR/2018-edition-error.rs:5:13
3   |
4LL |     pub mod await {
5   |             ^^^^^ expected identifier, found keyword
6help: you can escape reserved keywords to use them as identifiers
7   |
8LL |     pub mod r#await {
9   |             ^^^^^^^
10
11error: expected identifier, found keyword `await`
12  --> $DIR/2018-edition-error.rs:6:20
13   |
14LL |         pub struct await;
15   |                    ^^^^^ expected identifier, found keyword
16help: you can escape reserved keywords to use them as identifiers
17   |
18LL |         pub struct r#await;
19   |                    ^^^^^^^
20
21error: expected identifier, found keyword `await`
22  --> $DIR/2018-edition-error.rs:9:22
23   |
24LL | use self::outer_mod::await::await;
25   |                      ^^^^^ expected identifier, found keyword
26help: you can escape reserved keywords to use them as identifiers
27   |
28LL | use self::outer_mod::r#await::await;
29   |                      ^^^^^^^
30
31error: expected identifier, found keyword `await`
32  --> $DIR/2018-edition-error.rs:9:29
33   |
34LL | use self::outer_mod::await::await;
35   |                             ^^^^^ expected identifier, found keyword
36help: you can escape reserved keywords to use them as identifiers
37   |
38LL | use self::outer_mod::await::r#await;
39   |                             ^^^^^^^
40
41error: expected identifier, found keyword `await`
42  --> $DIR/2018-edition-error.rs:12:14
43   |
44LL | macro_rules! await { () => {}; }
45   |              ^^^^^ expected identifier, found keyword
46help: you can escape reserved keywords to use them as identifiers
47   |
48LL | macro_rules! r#await { () => {}; }
49   |              ^^^^^^^
50
51error: expected expression, found `)`
52  --> $DIR/2018-edition-error.rs:15:12
53   |
54LL |     await!();
55   |            ^ expected expression
56
57error: aborting due to 6 previous errors
58