@@ -4,76 +4,76 @@ error: expected identifier, found keyword `await`
4
4
LL | pub mod await {
5
5
| ^^^^^ expected identifier, found keyword
6
6
|
7
- help: you can escape reserved keywords to use them as identifiers
7
+ help: escape `await` to use it as an identifier
8
8
|
9
9
LL | pub mod r#await {
10
- | ~~~~~~~
10
+ | ++
11
11
12
12
error: expected identifier, found keyword `await`
13
13
--> $DIR/2018-edition-error-in-non-macro-position.rs:7:20
14
14
|
15
15
LL | pub struct await;
16
16
| ^^^^^ expected identifier, found keyword
17
17
|
18
- help: you can escape reserved keywords to use them as identifiers
18
+ help: escape `await` to use it as an identifier
19
19
|
20
20
LL | pub struct r#await;
21
- | ~~~~~~~
21
+ | ++
22
22
23
23
error: expected identifier, found keyword `await`
24
24
--> $DIR/2018-edition-error-in-non-macro-position.rs:10:22
25
25
|
26
26
LL | use self::outer_mod::await::await;
27
27
| ^^^^^ expected identifier, found keyword
28
28
|
29
- help: you can escape reserved keywords to use them as identifiers
29
+ help: escape `await` to use it as an identifier
30
30
|
31
31
LL | use self::outer_mod::r#await::await;
32
- | ~~~~~~~
32
+ | ++
33
33
34
34
error: expected identifier, found keyword `await`
35
35
--> $DIR/2018-edition-error-in-non-macro-position.rs:10:29
36
36
|
37
37
LL | use self::outer_mod::await::await;
38
38
| ^^^^^ expected identifier, found keyword
39
39
|
40
- help: you can escape reserved keywords to use them as identifiers
40
+ help: escape `await` to use it as an identifier
41
41
|
42
42
LL | use self::outer_mod::await::r#await;
43
- | ~~~~~~~
43
+ | ++
44
44
45
45
error: expected identifier, found keyword `await`
46
46
--> $DIR/2018-edition-error-in-non-macro-position.rs:13:14
47
47
|
48
48
LL | struct Foo { await: () }
49
49
| ^^^^^ expected identifier, found keyword
50
50
|
51
- help: you can escape reserved keywords to use them as identifiers
51
+ help: escape `await` to use it as an identifier
52
52
|
53
53
LL | struct Foo { r#await: () }
54
- | ~~~~~~~
54
+ | ++
55
55
56
56
error: expected identifier, found keyword `await`
57
57
--> $DIR/2018-edition-error-in-non-macro-position.rs:16:15
58
58
|
59
59
LL | impl Foo { fn await() {} }
60
60
| ^^^^^ expected identifier, found keyword
61
61
|
62
- help: you can escape reserved keywords to use them as identifiers
62
+ help: escape `await` to use it as an identifier
63
63
|
64
64
LL | impl Foo { fn r#await() {} }
65
- | ~~~~~~~
65
+ | ++
66
66
67
67
error: expected identifier, found keyword `await`
68
68
--> $DIR/2018-edition-error-in-non-macro-position.rs:19:14
69
69
|
70
70
LL | macro_rules! await {
71
71
| ^^^^^ expected identifier, found keyword
72
72
|
73
- help: you can escape reserved keywords to use them as identifiers
73
+ help: escape `await` to use it as an identifier
74
74
|
75
75
LL | macro_rules! r#await {
76
- | ~~~~~~~
76
+ | ++
77
77
78
78
error: aborting due to 7 previous errors
79
79
0 commit comments