@@ -132,13 +132,11 @@ LL | key_value_form();
132
132
note: found an item that was configured out
133
133
--> $DIR/syntax.rs:32:4
134
134
|
135
+ LL | #[cfg(version = "1.43")]
136
+ | ---------------- the item is gated behind the `1.43` feature
137
+ LL |
135
138
LL | fn key_value_form() {}
136
139
| ^^^^^^^^^^^^^^
137
- note: the item is gated behind the `1.43` feature
138
- --> $DIR/syntax.rs:30:7
139
- |
140
- LL | #[cfg(version = "1.43")]
141
- | ^^^^^^^^^^^^^^^^
142
140
143
141
error[E0425]: cannot find function `not_numbers_or_periods` in this scope
144
142
--> $DIR/syntax.rs:143:5
@@ -149,13 +147,11 @@ LL | not_numbers_or_periods();
149
147
note: found an item that was configured out
150
148
--> $DIR/syntax.rs:53:4
151
149
|
150
+ LL | #[cfg(version("foo"))]
151
+ | ------- the item is gated here
152
+ LL |
152
153
LL | fn not_numbers_or_periods() {}
153
154
| ^^^^^^^^^^^^^^^^^^^^^^
154
- note: the item is gated here
155
- --> $DIR/syntax.rs:51:14
156
- |
157
- LL | #[cfg(version("foo"))]
158
- | ^^^^^^^
159
155
160
156
error[E0425]: cannot find function `complex_semver_with_metadata` in this scope
161
157
--> $DIR/syntax.rs:144:5
@@ -166,13 +162,11 @@ LL | complex_semver_with_metadata();
166
162
note: found an item that was configured out
167
163
--> $DIR/syntax.rs:57:4
168
164
|
165
+ LL | #[cfg(version("1.20.0-stable"))]
166
+ | ----------------- the item is gated here
167
+ LL |
169
168
LL | fn complex_semver_with_metadata() {}
170
169
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
171
- note: the item is gated here
172
- --> $DIR/syntax.rs:55:14
173
- |
174
- LL | #[cfg(version("1.20.0-stable"))]
175
- | ^^^^^^^^^^^^^^^^^
176
170
177
171
error[E0425]: cannot find function `invalid_major_only` in this scope
178
172
--> $DIR/syntax.rs:145:5
@@ -183,13 +177,11 @@ LL | invalid_major_only();
183
177
note: found an item that was configured out
184
178
--> $DIR/syntax.rs:80:4
185
179
|
180
+ LL | #[cfg(version("1"))]
181
+ | ----- the item is gated here
182
+ LL |
186
183
LL | fn invalid_major_only() {}
187
184
| ^^^^^^^^^^^^^^^^^^
188
- note: the item is gated here
189
- --> $DIR/syntax.rs:78:14
190
- |
191
- LL | #[cfg(version("1"))]
192
- | ^^^^^
193
185
194
186
error[E0425]: cannot find function `invalid_major_only_zero` in this scope
195
187
--> $DIR/syntax.rs:146:5
@@ -200,13 +192,11 @@ LL | invalid_major_only_zero();
200
192
note: found an item that was configured out
201
193
--> $DIR/syntax.rs:84:4
202
194
|
195
+ LL | #[cfg(version("0"))]
196
+ | ----- the item is gated here
197
+ LL |
203
198
LL | fn invalid_major_only_zero() {}
204
199
| ^^^^^^^^^^^^^^^^^^^^^^^
205
- note: the item is gated here
206
- --> $DIR/syntax.rs:82:14
207
- |
208
- LL | #[cfg(version("0"))]
209
- | ^^^^^
210
200
211
201
error[E0425]: cannot find function `invalid_major_only_negative` in this scope
212
202
--> $DIR/syntax.rs:147:5
@@ -217,13 +207,11 @@ LL | invalid_major_only_negative();
217
207
note: found an item that was configured out
218
208
--> $DIR/syntax.rs:97:4
219
209
|
210
+ LL | #[cfg(version("-1"))]
211
+ | ------ the item is gated here
212
+ LL |
220
213
LL | fn invalid_major_only_negative() {}
221
214
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
222
- note: the item is gated here
223
- --> $DIR/syntax.rs:95:14
224
- |
225
- LL | #[cfg(version("-1"))]
226
- | ^^^^^^
227
215
228
216
error[E0425]: cannot find function `exceed_u16_major` in this scope
229
217
--> $DIR/syntax.rs:148:5
@@ -234,13 +222,11 @@ LL | exceed_u16_major();
234
222
note: found an item that was configured out
235
223
--> $DIR/syntax.rs:103:4
236
224
|
225
+ LL | #[cfg(version("65536"))]
226
+ | --------- the item is gated here
227
+ LL |
237
228
LL | fn exceed_u16_major() {}
238
229
| ^^^^^^^^^^^^^^^^
239
- note: the item is gated here
240
- --> $DIR/syntax.rs:101:14
241
- |
242
- LL | #[cfg(version("65536"))]
243
- | ^^^^^^^^^
244
230
245
231
error[E0425]: cannot find function `exceed_u16_minor` in this scope
246
232
--> $DIR/syntax.rs:149:5
@@ -251,13 +237,11 @@ LL | exceed_u16_minor();
251
237
note: found an item that was configured out
252
238
--> $DIR/syntax.rs:107:4
253
239
|
240
+ LL | #[cfg(version("1.65536.0"))]
241
+ | ------------- the item is gated here
242
+ LL |
254
243
LL | fn exceed_u16_minor() {}
255
244
| ^^^^^^^^^^^^^^^^
256
- note: the item is gated here
257
- --> $DIR/syntax.rs:105:14
258
- |
259
- LL | #[cfg(version("1.65536.0"))]
260
- | ^^^^^^^^^^^^^
261
245
262
246
error[E0425]: cannot find function `exceed_u16_patch` in this scope
263
247
--> $DIR/syntax.rs:150:5
@@ -268,13 +252,11 @@ LL | exceed_u16_patch();
268
252
note: found an item that was configured out
269
253
--> $DIR/syntax.rs:111:4
270
254
|
255
+ LL | #[cfg(version("1.0.65536"))]
256
+ | ------------- the item is gated here
257
+ LL |
271
258
LL | fn exceed_u16_patch() {}
272
259
| ^^^^^^^^^^^^^^^^
273
- note: the item is gated here
274
- --> $DIR/syntax.rs:109:14
275
- |
276
- LL | #[cfg(version("1.0.65536"))]
277
- | ^^^^^^^^^^^^^
278
260
279
261
error[E0425]: cannot find function `exceed_u16_mixed` in this scope
280
262
--> $DIR/syntax.rs:151:5
@@ -285,13 +267,11 @@ LL | exceed_u16_mixed();
285
267
note: found an item that was configured out
286
268
--> $DIR/syntax.rs:115:4
287
269
|
270
+ LL | #[cfg(version("65536.0.65536"))]
271
+ | ----------------- the item is gated here
272
+ LL |
288
273
LL | fn exceed_u16_mixed() {}
289
274
| ^^^^^^^^^^^^^^^^
290
- note: the item is gated here
291
- --> $DIR/syntax.rs:113:14
292
- |
293
- LL | #[cfg(version("65536.0.65536"))]
294
- | ^^^^^^^^^^^^^^^^^
295
275
296
276
error: aborting due to 14 previous errors; 14 warnings emitted
297
277
0 commit comments