11error[E0658]: `cfg(version)` is experimental and subject to change
22 --> $DIR/feature-gate-cfg-version.rs:1:7
33 |
4+ LL | #[cfg(version(42))]
5+ | ^^^^^^^^^^^
6+ |
7+ = note: see issue #64796 <https://github.com/rust-lang/rust/issues/64796> for more information
8+ = help: add `#![feature(cfg_version)]` to the crate attributes to enable
9+
10+ error: expected a version literal
11+ --> $DIR/feature-gate-cfg-version.rs:1:15
12+ |
13+ LL | #[cfg(version(42))]
14+ | ^^
15+
16+ error[E0658]: `cfg(version)` is experimental and subject to change
17+ --> $DIR/feature-gate-cfg-version.rs:4:7
18+ |
19+ LL | #[cfg(version(1.20))]
20+ | ^^^^^^^^^^^^^
21+ |
22+ = note: see issue #64796 <https://github.com/rust-lang/rust/issues/64796> for more information
23+ = help: add `#![feature(cfg_version)]` to the crate attributes to enable
24+
25+ error: expected a version literal
26+ --> $DIR/feature-gate-cfg-version.rs:4:15
27+ |
28+ LL | #[cfg(version(1.20))]
29+ | ^^^^
30+
31+ error[E0658]: `cfg(version)` is experimental and subject to change
32+ --> $DIR/feature-gate-cfg-version.rs:7:7
33+ |
434LL | #[cfg(version("1.44"))]
535 | ^^^^^^^^^^^^^^^
636 |
737 = note: see issue #64796 <https://github.com/rust-lang/rust/issues/64796> for more information
838 = help: add `#![feature(cfg_version)]` to the crate attributes to enable
939
1040error[E0658]: `cfg(version)` is experimental and subject to change
11- --> $DIR/feature-gate-cfg-version.rs:4 :11
41+ --> $DIR/feature-gate-cfg-version.rs:10 :11
1242 |
1343LL | #[cfg(not(version("1.44")))]
1444 | ^^^^^^^^^^^^^^^
@@ -17,7 +47,7 @@ LL | #[cfg(not(version("1.44")))]
1747 = help: add `#![feature(cfg_version)]` to the crate attributes to enable
1848
1949error[E0658]: `cfg(version)` is experimental and subject to change
20- --> $DIR/feature-gate-cfg-version.rs:8 :7
50+ --> $DIR/feature-gate-cfg-version.rs:14 :7
2151 |
2252LL | #[cfg(version("1.43", "1.44", "1.45"))]
2353 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -26,13 +56,13 @@ LL | #[cfg(version("1.43", "1.44", "1.45"))]
2656 = help: add `#![feature(cfg_version)]` to the crate attributes to enable
2757
2858error: expected single version literal
29- --> $DIR/feature-gate-cfg-version.rs:8 :7
59+ --> $DIR/feature-gate-cfg-version.rs:14 :7
3060 |
3161LL | #[cfg(version("1.43", "1.44", "1.45"))]
3262 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3363
3464error[E0658]: `cfg(version)` is experimental and subject to change
35- --> $DIR/feature-gate-cfg-version.rs:11 :7
65+ --> $DIR/feature-gate-cfg-version.rs:17 :7
3666 |
3767LL | #[cfg(version(false))]
3868 | ^^^^^^^^^^^^^^
@@ -41,92 +71,134 @@ LL | #[cfg(version(false))]
4171 = help: add `#![feature(cfg_version)]` to the crate attributes to enable
4272
4373error: expected a version literal
44- --> $DIR/feature-gate-cfg-version.rs:11 :15
74+ --> $DIR/feature-gate-cfg-version.rs:17 :15
4575 |
4676LL | #[cfg(version(false))]
4777 | ^^^^^
4878
4979error[E0658]: `cfg(version)` is experimental and subject to change
50- --> $DIR/feature-gate-cfg-version.rs:14 :7
80+ --> $DIR/feature-gate-cfg-version.rs:20 :7
5181 |
5282LL | #[cfg(version("foo"))]
5383 | ^^^^^^^^^^^^^^
5484 |
5585 = note: see issue #64796 <https://github.com/rust-lang/rust/issues/64796> for more information
5686 = help: add `#![feature(cfg_version)]` to the crate attributes to enable
5787
58- error: invalid version literal
59- --> $DIR/feature-gate-cfg-version.rs:14 :15
88+ warning: unknown version literal format, assuming it refers to a future version
89+ --> $DIR/feature-gate-cfg-version.rs:20 :15
6090 |
6191LL | #[cfg(version("foo"))]
6292 | ^^^^^
6393
6494error[E0658]: `cfg(version)` is experimental and subject to change
65- --> $DIR/feature-gate-cfg-version.rs:17 :7
95+ --> $DIR/feature-gate-cfg-version.rs:23 :7
6696 |
6797LL | #[cfg(version("999"))]
6898 | ^^^^^^^^^^^^^^
6999 |
70100 = note: see issue #64796 <https://github.com/rust-lang/rust/issues/64796> for more information
71101 = help: add `#![feature(cfg_version)]` to the crate attributes to enable
72102
103+ warning: unknown version literal format, assuming it refers to a future version
104+ --> $DIR/feature-gate-cfg-version.rs:23:15
105+ |
106+ LL | #[cfg(version("999"))]
107+ | ^^^^^
108+
73109error[E0658]: `cfg(version)` is experimental and subject to change
74- --> $DIR/feature-gate-cfg-version.rs:20 :7
110+ --> $DIR/feature-gate-cfg-version.rs:26 :7
75111 |
76112LL | #[cfg(version("-1"))]
77113 | ^^^^^^^^^^^^^
78114 |
79115 = note: see issue #64796 <https://github.com/rust-lang/rust/issues/64796> for more information
80116 = help: add `#![feature(cfg_version)]` to the crate attributes to enable
81117
82- error: invalid version literal
83- --> $DIR/feature-gate-cfg-version.rs:20 :15
118+ warning: unknown version literal format, assuming it refers to a future version
119+ --> $DIR/feature-gate-cfg-version.rs:26 :15
84120 |
85121LL | #[cfg(version("-1"))]
86122 | ^^^^
87123
88124error[E0658]: `cfg(version)` is experimental and subject to change
89- --> $DIR/feature-gate-cfg-version.rs:23 :7
125+ --> $DIR/feature-gate-cfg-version.rs:29 :7
90126 |
91127LL | #[cfg(version("65536"))]
92128 | ^^^^^^^^^^^^^^^^
93129 |
94130 = note: see issue #64796 <https://github.com/rust-lang/rust/issues/64796> for more information
95131 = help: add `#![feature(cfg_version)]` to the crate attributes to enable
96132
97- error: invalid version literal
98- --> $DIR/feature-gate-cfg-version.rs:23 :15
133+ warning: unknown version literal format, assuming it refers to a future version
134+ --> $DIR/feature-gate-cfg-version.rs:29 :15
99135 |
100136LL | #[cfg(version("65536"))]
101137 | ^^^^^^^
102138
103139error[E0658]: `cfg(version)` is experimental and subject to change
104- --> $DIR/feature-gate-cfg-version.rs:26 :7
140+ --> $DIR/feature-gate-cfg-version.rs:32 :7
105141 |
106142LL | #[cfg(version("0"))]
107143 | ^^^^^^^^^^^^
108144 |
109145 = note: see issue #64796 <https://github.com/rust-lang/rust/issues/64796> for more information
110146 = help: add `#![feature(cfg_version)]` to the crate attributes to enable
111147
148+ warning: unknown version literal format, assuming it refers to a future version
149+ --> $DIR/feature-gate-cfg-version.rs:32:15
150+ |
151+ LL | #[cfg(version("0"))]
152+ | ^^^
153+
154+ error[E0658]: `cfg(version)` is experimental and subject to change
155+ --> $DIR/feature-gate-cfg-version.rs:35:7
156+ |
157+ LL | #[cfg(version("1.0"))]
158+ | ^^^^^^^^^^^^^^
159+ |
160+ = note: see issue #64796 <https://github.com/rust-lang/rust/issues/64796> for more information
161+ = help: add `#![feature(cfg_version)]` to the crate attributes to enable
162+
112163error[E0658]: `cfg(version)` is experimental and subject to change
113- --> $DIR/feature-gate-cfg-version.rs:30 :7
164+ --> $DIR/feature-gate-cfg-version.rs:38 :7
114165 |
115166LL | #[cfg(version("1.65536.2"))]
116167 | ^^^^^^^^^^^^^^^^^^^^
117168 |
118169 = note: see issue #64796 <https://github.com/rust-lang/rust/issues/64796> for more information
119170 = help: add `#![feature(cfg_version)]` to the crate attributes to enable
120171
172+ warning: unknown version literal format, assuming it refers to a future version
173+ --> $DIR/feature-gate-cfg-version.rs:38:15
174+ |
175+ LL | #[cfg(version("1.65536.2"))]
176+ | ^^^^^^^^^^^
177+
178+ error[E0658]: `cfg(version)` is experimental and subject to change
179+ --> $DIR/feature-gate-cfg-version.rs:41:7
180+ |
181+ LL | #[cfg(version("1.20.0-stable"))]
182+ | ^^^^^^^^^^^^^^^^^^^^^^^^
183+ |
184+ = note: see issue #64796 <https://github.com/rust-lang/rust/issues/64796> for more information
185+ = help: add `#![feature(cfg_version)]` to the crate attributes to enable
186+
187+ warning: unknown version literal format, assuming it refers to a future version
188+ --> $DIR/feature-gate-cfg-version.rs:41:15
189+ |
190+ LL | #[cfg(version("1.20.0-stable"))]
191+ | ^^^^^^^^^^^^^^^
192+
121193error[E0658]: `cfg(version)` is experimental and subject to change
122- --> $DIR/feature-gate-cfg-version.rs:40 :18
194+ --> $DIR/feature-gate-cfg-version.rs:48 :18
123195 |
124196LL | assert!(cfg!(version("1.42")));
125197 | ^^^^^^^^^^^^^^^
126198 |
127199 = note: see issue #64796 <https://github.com/rust-lang/rust/issues/64796> for more information
128200 = help: add `#![feature(cfg_version)]` to the crate attributes to enable
129201
130- error: aborting due to 16 previous errors
202+ error: aborting due to 19 previous errors; 7 warnings emitted
131203
132204For more information about this error, try `rustc --explain E0658`.
0 commit comments