fork/rust

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

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

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