]> git.lizzy.rs Git - rust.git/blob - src/test/ui/await-keyword/2018-edition-error.stderr
Rollup merge of #60627 - matklad:test, r=estebank
[rust.git] / src / test / ui / await-keyword / 2018-edition-error.stderr
1 error: expected identifier, found reserved keyword `await`
2   --> $DIR/2018-edition-error.rs:5:13
3    |
4 LL |     pub mod await {
5    |             ^^^^^ expected identifier, found reserved keyword
6 help: you can escape reserved keywords to use them as identifiers
7    |
8 LL |     pub mod r#await {
9    |             ^^^^^^^
10
11 error: expected identifier, found reserved keyword `await`
12   --> $DIR/2018-edition-error.rs:6:20
13    |
14 LL |         pub struct await;
15    |                    ^^^^^ expected identifier, found reserved keyword
16 help: you can escape reserved keywords to use them as identifiers
17    |
18 LL |         pub struct r#await;
19    |                    ^^^^^^^
20
21 error: expected identifier, found reserved keyword `await`
22   --> $DIR/2018-edition-error.rs:9:22
23    |
24 LL | use self::outer_mod::await::await;
25    |                      ^^^^^ expected identifier, found reserved keyword
26 help: you can escape reserved keywords to use them as identifiers
27    |
28 LL | use self::outer_mod::r#await::await;
29    |                      ^^^^^^^
30
31 error: expected identifier, found reserved keyword `await`
32   --> $DIR/2018-edition-error.rs:9:29
33    |
34 LL | use self::outer_mod::await::await;
35    |                             ^^^^^ expected identifier, found reserved keyword
36 help: you can escape reserved keywords to use them as identifiers
37    |
38 LL | use self::outer_mod::await::r#await;
39    |                             ^^^^^^^
40
41 error: expected `!`, found `{`
42   --> $DIR/2018-edition-error.rs:13:17
43    |
44 LL |     match await { await => () }
45    |     -----       ^ expected `!`
46    |     |
47    |     while parsing this match expression
48
49 error: aborting due to 5 previous errors
50