@@ -128,60 +128,170 @@ error[E0425]: cannot find function `key_value_form` in this scope
128128 |
129129LL | key_value_form();
130130 | ^^^^^^^^^^^^^^ not found in this scope
131+ |
132+ note: found an item that was configured out
133+ --> $DIR/syntax.rs:32:4
134+ |
135+ LL | fn key_value_form() {}
136+ | ^^^^^^^^^^^^^^
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+ | ^^^^^^^^^^^^^^^^
131142
132143error[E0425]: cannot find function `not_numbers_or_periods` in this scope
133144 --> $DIR/syntax.rs:143:5
134145 |
135146LL | not_numbers_or_periods();
136147 | ^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
148+ |
149+ note: found an item that was configured out
150+ --> $DIR/syntax.rs:53:4
151+ |
152+ LL | fn not_numbers_or_periods() {}
153+ | ^^^^^^^^^^^^^^^^^^^^^^
154+ note: the item is gated here
155+ --> $DIR/syntax.rs:51:14
156+ |
157+ LL | #[cfg(version("foo"))]
158+ | ^^^^^^^
137159
138160error[E0425]: cannot find function `complex_semver_with_metadata` in this scope
139161 --> $DIR/syntax.rs:144:5
140162 |
141163LL | complex_semver_with_metadata();
142164 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
165+ |
166+ note: found an item that was configured out
167+ --> $DIR/syntax.rs:57:4
168+ |
169+ LL | fn complex_semver_with_metadata() {}
170+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
171+ note: the item is gated here
172+ --> $DIR/syntax.rs:55:14
173+ |
174+ LL | #[cfg(version("1.20.0-stable"))]
175+ | ^^^^^^^^^^^^^^^^^
143176
144177error[E0425]: cannot find function `invalid_major_only` in this scope
145178 --> $DIR/syntax.rs:145:5
146179 |
147180LL | invalid_major_only();
148181 | ^^^^^^^^^^^^^^^^^^ not found in this scope
182+ |
183+ note: found an item that was configured out
184+ --> $DIR/syntax.rs:80:4
185+ |
186+ LL | fn invalid_major_only() {}
187+ | ^^^^^^^^^^^^^^^^^^
188+ note: the item is gated here
189+ --> $DIR/syntax.rs:78:14
190+ |
191+ LL | #[cfg(version("1"))]
192+ | ^^^^^
149193
150194error[E0425]: cannot find function `invalid_major_only_zero` in this scope
151195 --> $DIR/syntax.rs:146:5
152196 |
153197LL | invalid_major_only_zero();
154198 | ^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
199+ |
200+ note: found an item that was configured out
201+ --> $DIR/syntax.rs:84:4
202+ |
203+ LL | fn invalid_major_only_zero() {}
204+ | ^^^^^^^^^^^^^^^^^^^^^^^
205+ note: the item is gated here
206+ --> $DIR/syntax.rs:82:14
207+ |
208+ LL | #[cfg(version("0"))]
209+ | ^^^^^
155210
156211error[E0425]: cannot find function `invalid_major_only_negative` in this scope
157212 --> $DIR/syntax.rs:147:5
158213 |
159214LL | invalid_major_only_negative();
160215 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope
216+ |
217+ note: found an item that was configured out
218+ --> $DIR/syntax.rs:97:4
219+ |
220+ LL | fn invalid_major_only_negative() {}
221+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
222+ note: the item is gated here
223+ --> $DIR/syntax.rs:95:14
224+ |
225+ LL | #[cfg(version("-1"))]
226+ | ^^^^^^
161227
162228error[E0425]: cannot find function `exceed_u16_major` in this scope
163229 --> $DIR/syntax.rs:148:5
164230 |
165231LL | exceed_u16_major();
166232 | ^^^^^^^^^^^^^^^^ not found in this scope
233+ |
234+ note: found an item that was configured out
235+ --> $DIR/syntax.rs:103:4
236+ |
237+ LL | fn exceed_u16_major() {}
238+ | ^^^^^^^^^^^^^^^^
239+ note: the item is gated here
240+ --> $DIR/syntax.rs:101:14
241+ |
242+ LL | #[cfg(version("65536"))]
243+ | ^^^^^^^^^
167244
168245error[E0425]: cannot find function `exceed_u16_minor` in this scope
169246 --> $DIR/syntax.rs:149:5
170247 |
171248LL | exceed_u16_minor();
172249 | ^^^^^^^^^^^^^^^^ not found in this scope
250+ |
251+ note: found an item that was configured out
252+ --> $DIR/syntax.rs:107:4
253+ |
254+ LL | fn exceed_u16_minor() {}
255+ | ^^^^^^^^^^^^^^^^
256+ note: the item is gated here
257+ --> $DIR/syntax.rs:105:14
258+ |
259+ LL | #[cfg(version("1.65536.0"))]
260+ | ^^^^^^^^^^^^^
173261
174262error[E0425]: cannot find function `exceed_u16_patch` in this scope
175263 --> $DIR/syntax.rs:150:5
176264 |
177265LL | exceed_u16_patch();
178266 | ^^^^^^^^^^^^^^^^ not found in this scope
267+ |
268+ note: found an item that was configured out
269+ --> $DIR/syntax.rs:111:4
270+ |
271+ LL | fn exceed_u16_patch() {}
272+ | ^^^^^^^^^^^^^^^^
273+ note: the item is gated here
274+ --> $DIR/syntax.rs:109:14
275+ |
276+ LL | #[cfg(version("1.0.65536"))]
277+ | ^^^^^^^^^^^^^
179278
180279error[E0425]: cannot find function `exceed_u16_mixed` in this scope
181280 --> $DIR/syntax.rs:151:5
182281 |
183282LL | exceed_u16_mixed();
184283 | ^^^^^^^^^^^^^^^^ not found in this scope
284+ |
285+ note: found an item that was configured out
286+ --> $DIR/syntax.rs:115:4
287+ |
288+ LL | fn exceed_u16_mixed() {}
289+ | ^^^^^^^^^^^^^^^^
290+ note: the item is gated here
291+ --> $DIR/syntax.rs:113:14
292+ |
293+ LL | #[cfg(version("65536.0.65536"))]
294+ | ^^^^^^^^^^^^^^^^^
185295
186296error: aborting due to 14 previous errors; 14 warnings emitted
187297
0 commit comments