@@ -132,13 +132,11 @@ LL | key_value_form();
132132note: found an item that was configured out
133133 --> $DIR/syntax.rs:32:4
134134 |
135+ LL | #[cfg(version = "1.43")]
136+ | ---------------- the item is gated behind the `1.43` feature
137+ LL |
135138LL | fn key_value_form() {}
136139 | ^^^^^^^^^^^^^^
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- | ^^^^^^^^^^^^^^^^
142140
143141error[E0425]: cannot find function `not_numbers_or_periods` in this scope
144142 --> $DIR/syntax.rs:143:5
@@ -149,13 +147,11 @@ LL | not_numbers_or_periods();
149147note: found an item that was configured out
150148 --> $DIR/syntax.rs:53:4
151149 |
150+ LL | #[cfg(version("foo"))]
151+ | ------- the item is gated here
152+ LL |
152153LL | fn not_numbers_or_periods() {}
153154 | ^^^^^^^^^^^^^^^^^^^^^^
154- note: the item is gated here
155- --> $DIR/syntax.rs:51:14
156- |
157- LL | #[cfg(version("foo"))]
158- | ^^^^^^^
159155
160156error[E0425]: cannot find function `complex_semver_with_metadata` in this scope
161157 --> $DIR/syntax.rs:144:5
@@ -166,13 +162,11 @@ LL | complex_semver_with_metadata();
166162note: found an item that was configured out
167163 --> $DIR/syntax.rs:57:4
168164 |
165+ LL | #[cfg(version("1.20.0-stable"))]
166+ | ----------------- the item is gated here
167+ LL |
169168LL | fn complex_semver_with_metadata() {}
170169 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
171- note: the item is gated here
172- --> $DIR/syntax.rs:55:14
173- |
174- LL | #[cfg(version("1.20.0-stable"))]
175- | ^^^^^^^^^^^^^^^^^
176170
177171error[E0425]: cannot find function `invalid_major_only` in this scope
178172 --> $DIR/syntax.rs:145:5
@@ -183,13 +177,11 @@ LL | invalid_major_only();
183177note: found an item that was configured out
184178 --> $DIR/syntax.rs:80:4
185179 |
180+ LL | #[cfg(version("1"))]
181+ | ----- the item is gated here
182+ LL |
186183LL | fn invalid_major_only() {}
187184 | ^^^^^^^^^^^^^^^^^^
188- note: the item is gated here
189- --> $DIR/syntax.rs:78:14
190- |
191- LL | #[cfg(version("1"))]
192- | ^^^^^
193185
194186error[E0425]: cannot find function `invalid_major_only_zero` in this scope
195187 --> $DIR/syntax.rs:146:5
@@ -200,13 +192,11 @@ LL | invalid_major_only_zero();
200192note: found an item that was configured out
201193 --> $DIR/syntax.rs:84:4
202194 |
195+ LL | #[cfg(version("0"))]
196+ | ----- the item is gated here
197+ LL |
203198LL | fn invalid_major_only_zero() {}
204199 | ^^^^^^^^^^^^^^^^^^^^^^^
205- note: the item is gated here
206- --> $DIR/syntax.rs:82:14
207- |
208- LL | #[cfg(version("0"))]
209- | ^^^^^
210200
211201error[E0425]: cannot find function `invalid_major_only_negative` in this scope
212202 --> $DIR/syntax.rs:147:5
@@ -217,13 +207,11 @@ LL | invalid_major_only_negative();
217207note: found an item that was configured out
218208 --> $DIR/syntax.rs:97:4
219209 |
210+ LL | #[cfg(version("-1"))]
211+ | ------ the item is gated here
212+ LL |
220213LL | fn invalid_major_only_negative() {}
221214 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
222- note: the item is gated here
223- --> $DIR/syntax.rs:95:14
224- |
225- LL | #[cfg(version("-1"))]
226- | ^^^^^^
227215
228216error[E0425]: cannot find function `exceed_u16_major` in this scope
229217 --> $DIR/syntax.rs:148:5
@@ -234,13 +222,11 @@ LL | exceed_u16_major();
234222note: found an item that was configured out
235223 --> $DIR/syntax.rs:103:4
236224 |
225+ LL | #[cfg(version("65536"))]
226+ | --------- the item is gated here
227+ LL |
237228LL | fn exceed_u16_major() {}
238229 | ^^^^^^^^^^^^^^^^
239- note: the item is gated here
240- --> $DIR/syntax.rs:101:14
241- |
242- LL | #[cfg(version("65536"))]
243- | ^^^^^^^^^
244230
245231error[E0425]: cannot find function `exceed_u16_minor` in this scope
246232 --> $DIR/syntax.rs:149:5
@@ -251,13 +237,11 @@ LL | exceed_u16_minor();
251237note: found an item that was configured out
252238 --> $DIR/syntax.rs:107:4
253239 |
240+ LL | #[cfg(version("1.65536.0"))]
241+ | ------------- the item is gated here
242+ LL |
254243LL | fn exceed_u16_minor() {}
255244 | ^^^^^^^^^^^^^^^^
256- note: the item is gated here
257- --> $DIR/syntax.rs:105:14
258- |
259- LL | #[cfg(version("1.65536.0"))]
260- | ^^^^^^^^^^^^^
261245
262246error[E0425]: cannot find function `exceed_u16_patch` in this scope
263247 --> $DIR/syntax.rs:150:5
@@ -268,13 +252,11 @@ LL | exceed_u16_patch();
268252note: found an item that was configured out
269253 --> $DIR/syntax.rs:111:4
270254 |
255+ LL | #[cfg(version("1.0.65536"))]
256+ | ------------- the item is gated here
257+ LL |
271258LL | fn exceed_u16_patch() {}
272259 | ^^^^^^^^^^^^^^^^
273- note: the item is gated here
274- --> $DIR/syntax.rs:109:14
275- |
276- LL | #[cfg(version("1.0.65536"))]
277- | ^^^^^^^^^^^^^
278260
279261error[E0425]: cannot find function `exceed_u16_mixed` in this scope
280262 --> $DIR/syntax.rs:151:5
@@ -285,13 +267,11 @@ LL | exceed_u16_mixed();
285267note: found an item that was configured out
286268 --> $DIR/syntax.rs:115:4
287269 |
270+ LL | #[cfg(version("65536.0.65536"))]
271+ | ----------------- the item is gated here
272+ LL |
288273LL | fn exceed_u16_mixed() {}
289274 | ^^^^^^^^^^^^^^^^
290- note: the item is gated here
291- --> $DIR/syntax.rs:113:14
292- |
293- LL | #[cfg(version("65536.0.65536"))]
294- | ^^^^^^^^^^^^^^^^^
295275
296276error: aborting due to 14 previous errors; 14 warnings emitted
297277
0 commit comments