@@ -128,60 +128,150 @@ 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 | #[cfg(version = "1.43")]
136+    |       ---------------- the item is gated behind the `1.43` feature
137+ LL |
138+ LL | fn key_value_form() {}
139+    |    ^^^^^^^^^^^^^^
131140
132141error[E0425]: cannot find function `not_numbers_or_periods` in this scope
133142  --> $DIR/syntax.rs:143:5
134143   |
135144LL |     not_numbers_or_periods();
136145   |     ^^^^^^^^^^^^^^^^^^^^^^ 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+    |    ^^^^^^^^^^^^^^^^^^^^^^
137155
138156error[E0425]: cannot find function `complex_semver_with_metadata` in this scope
139157  --> $DIR/syntax.rs:144:5
140158   |
141159LL |     complex_semver_with_metadata();
142160   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 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+    |    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
143170
144171error[E0425]: cannot find function `invalid_major_only` in this scope
145172  --> $DIR/syntax.rs:145:5
146173   |
147174LL |     invalid_major_only();
148175   |     ^^^^^^^^^^^^^^^^^^ 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+    |    ^^^^^^^^^^^^^^^^^^
149185
150186error[E0425]: cannot find function `invalid_major_only_zero` in this scope
151187  --> $DIR/syntax.rs:146:5
152188   |
153189LL |     invalid_major_only_zero();
154190   |     ^^^^^^^^^^^^^^^^^^^^^^^ 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+    |    ^^^^^^^^^^^^^^^^^^^^^^^
155200
156201error[E0425]: cannot find function `invalid_major_only_negative` in this scope
157202  --> $DIR/syntax.rs:147:5
158203   |
159204LL |     invalid_major_only_negative();
160205   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 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+    |    ^^^^^^^^^^^^^^^^^^^^^^^^^^^
161215
162216error[E0425]: cannot find function `exceed_u16_major` in this scope
163217  --> $DIR/syntax.rs:148:5
164218   |
165219LL |     exceed_u16_major();
166220   |     ^^^^^^^^^^^^^^^^ 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+    |    ^^^^^^^^^^^^^^^^
167230
168231error[E0425]: cannot find function `exceed_u16_minor` in this scope
169232  --> $DIR/syntax.rs:149:5
170233   |
171234LL |     exceed_u16_minor();
172235   |     ^^^^^^^^^^^^^^^^ 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+    |    ^^^^^^^^^^^^^^^^
173245
174246error[E0425]: cannot find function `exceed_u16_patch` in this scope
175247  --> $DIR/syntax.rs:150:5
176248   |
177249LL |     exceed_u16_patch();
178250   |     ^^^^^^^^^^^^^^^^ 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+    |    ^^^^^^^^^^^^^^^^
179260
180261error[E0425]: cannot find function `exceed_u16_mixed` in this scope
181262  --> $DIR/syntax.rs:151:5
182263   |
183264LL |     exceed_u16_mixed();
184265   |     ^^^^^^^^^^^^^^^^ 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+    |    ^^^^^^^^^^^^^^^^
185275
186276error: aborting due to 14 previous errors; 14 warnings emitted
187277
0 commit comments