@@ -31,7 +31,16 @@ LL | ($async:expr, async) => {};
31
31
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
32
32
33
33
error: `async` is a keyword in the 2018 edition
34
- --> $DIR/async-ident.rs:36:11
34
+ --> $DIR/async-ident.rs:29:6
35
+ |
36
+ LL | foo!(async);
37
+ | ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
38
+ |
39
+ = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2018 edition!
40
+ = note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
41
+
42
+ error: `async` is a keyword in the 2018 edition
43
+ --> $DIR/async-ident.rs:38:11
35
44
|
36
45
LL | trait async {}
37
46
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
@@ -40,7 +49,7 @@ LL | trait async {}
40
49
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
41
50
42
51
error: `async` is a keyword in the 2018 edition
43
- --> $DIR/async-ident.rs:40 :10
52
+ --> $DIR/async-ident.rs:42 :10
44
53
|
45
54
LL | impl async for MyStruct {}
46
55
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
@@ -49,7 +58,7 @@ LL | impl async for MyStruct {}
49
58
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
50
59
51
60
error: `async` is a keyword in the 2018 edition
52
- --> $DIR/async-ident.rs:46 :12
61
+ --> $DIR/async-ident.rs:48 :12
53
62
|
54
63
LL | static async: u32 = 0;
55
64
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
@@ -58,7 +67,7 @@ LL | static async: u32 = 0;
58
67
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
59
68
60
69
error: `async` is a keyword in the 2018 edition
61
- --> $DIR/async-ident.rs:52 :11
70
+ --> $DIR/async-ident.rs:54 :11
62
71
|
63
72
LL | const async: u32 = 0;
64
73
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
@@ -67,7 +76,7 @@ LL | const async: u32 = 0;
67
76
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
68
77
69
78
error: `async` is a keyword in the 2018 edition
70
- --> $DIR/async-ident.rs:58 :15
79
+ --> $DIR/async-ident.rs:60 :15
71
80
|
72
81
LL | impl Foo { fn async() {} }
73
82
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
@@ -76,7 +85,7 @@ LL | impl Foo { fn async() {} }
76
85
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
77
86
78
87
error: `async` is a keyword in the 2018 edition
79
- --> $DIR/async-ident.rs:63 :12
88
+ --> $DIR/async-ident.rs:65 :12
80
89
|
81
90
LL | struct async {}
82
91
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
@@ -85,7 +94,7 @@ LL | struct async {}
85
94
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
86
95
87
96
error: `async` is a keyword in the 2018 edition
88
- --> $DIR/async-ident.rs:66 :9
97
+ --> $DIR/async-ident.rs:68 :9
89
98
|
90
99
LL | let async: async = async {};
91
100
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
@@ -94,7 +103,7 @@ LL | let async: async = async {};
94
103
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
95
104
96
105
error: `async` is a keyword in the 2018 edition
97
- --> $DIR/async-ident.rs:66 :16
106
+ --> $DIR/async-ident.rs:68 :16
98
107
|
99
108
LL | let async: async = async {};
100
109
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
@@ -103,7 +112,7 @@ LL | let async: async = async {};
103
112
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
104
113
105
114
error: `async` is a keyword in the 2018 edition
106
- --> $DIR/async-ident.rs:66 :24
115
+ --> $DIR/async-ident.rs:68 :24
107
116
|
108
117
LL | let async: async = async {};
109
118
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
@@ -112,7 +121,7 @@ LL | let async: async = async {};
112
121
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
113
122
114
123
error: `async` is a keyword in the 2018 edition
115
- --> $DIR/async-ident.rs:77 :19
124
+ --> $DIR/async-ident.rs:79 :19
116
125
|
117
126
LL | () => (pub fn async() {})
118
127
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
@@ -121,13 +130,13 @@ LL | () => (pub fn async() {})
121
130
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
122
131
123
132
error: `async` is a keyword in the 2018 edition
124
- --> $DIR/async-ident.rs:84 :6
133
+ --> $DIR/async-ident.rs:86 :6
125
134
|
126
135
LL | (async) => (1)
127
136
| ^^^^^ help: you can use a raw identifier to stay compatible: `r#async`
128
137
|
129
138
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2018 edition!
130
139
= note: for more information, see issue #49716 <https://github.com/rust-lang/rust/issues/49716>
131
140
132
- error: aborting due to 14 previous errors
141
+ error: aborting due to 15 previous errors
133
142
0 commit comments