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