]> git.proxmox.com Git - rustc.git/blob - src/test/ui/async-await/await-keyword/2018-edition-error-in-non-macro-position.stderr
Merge tag 'debian/1.66.0+dfsg1-1_exp1' into debian/sid
[rustc.git] / src / test / ui / async-await / await-keyword / 2018-edition-error-in-non-macro-position.stderr
1 error: expected identifier, found keyword `await`
2 --> $DIR/2018-edition-error-in-non-macro-position.rs:6:13
3 |
4 LL | pub mod await {
5 | ^^^^^ expected identifier, found keyword
6 |
7 help: escape `await` to use it as an identifier
8 |
9 LL | pub mod r#await {
10 | ++
11
12 error: expected identifier, found keyword `await`
13 --> $DIR/2018-edition-error-in-non-macro-position.rs:7:20
14 |
15 LL | pub struct await;
16 | ^^^^^ expected identifier, found keyword
17 |
18 help: escape `await` to use it as an identifier
19 |
20 LL | pub struct r#await;
21 | ++
22
23 error: expected identifier, found keyword `await`
24 --> $DIR/2018-edition-error-in-non-macro-position.rs:10:22
25 |
26 LL | use self::outer_mod::await::await;
27 | ^^^^^ expected identifier, found keyword
28 |
29 help: escape `await` to use it as an identifier
30 |
31 LL | use self::outer_mod::r#await::await;
32 | ++
33
34 error: expected identifier, found keyword `await`
35 --> $DIR/2018-edition-error-in-non-macro-position.rs:10:29
36 |
37 LL | use self::outer_mod::await::await;
38 | ^^^^^ expected identifier, found keyword
39 |
40 help: escape `await` to use it as an identifier
41 |
42 LL | use self::outer_mod::await::r#await;
43 | ++
44
45 error: expected identifier, found keyword `await`
46 --> $DIR/2018-edition-error-in-non-macro-position.rs:13:14
47 |
48 LL | struct Foo { await: () }
49 | --- ^^^^^ expected identifier, found keyword
50 | |
51 | while parsing this struct
52 |
53 help: escape `await` to use it as an identifier
54 |
55 LL | struct Foo { r#await: () }
56 | ++
57
58 error: expected identifier, found keyword `await`
59 --> $DIR/2018-edition-error-in-non-macro-position.rs:16:15
60 |
61 LL | impl Foo { fn await() {} }
62 | ^^^^^ expected identifier, found keyword
63 |
64 help: escape `await` to use it as an identifier
65 |
66 LL | impl Foo { fn r#await() {} }
67 | ++
68
69 error: expected identifier, found keyword `await`
70 --> $DIR/2018-edition-error-in-non-macro-position.rs:19:14
71 |
72 LL | macro_rules! await {
73 | ^^^^^ expected identifier, found keyword
74 |
75 help: escape `await` to use it as an identifier
76 |
77 LL | macro_rules! r#await {
78 | ++
79
80 error: aborting due to 7 previous errors
81