1
1
error[E0658]: `cfg(version)` is experimental and subject to change
2
2
--> $DIR/feature-gate-cfg-version.rs:1:7
3
3
|
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
+ |
4
34
LL | #[cfg(version("1.44"))]
5
35
| ^^^^^^^^^^^^^^^
6
36
|
7
37
= note: see issue #64796 <https://github.com/rust-lang/rust/issues/64796> for more information
8
38
= help: add `#![feature(cfg_version)]` to the crate attributes to enable
9
39
10
40
error[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
12
42
|
13
43
LL | #[cfg(not(version("1.44")))]
14
44
| ^^^^^^^^^^^^^^^
@@ -17,7 +47,7 @@ LL | #[cfg(not(version("1.44")))]
17
47
= help: add `#![feature(cfg_version)]` to the crate attributes to enable
18
48
19
49
error[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
21
51
|
22
52
LL | #[cfg(version("1.43", "1.44", "1.45"))]
23
53
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -26,13 +56,13 @@ LL | #[cfg(version("1.43", "1.44", "1.45"))]
26
56
= help: add `#![feature(cfg_version)]` to the crate attributes to enable
27
57
28
58
error: expected single version literal
29
- --> $DIR/feature-gate-cfg-version.rs:8 :7
59
+ --> $DIR/feature-gate-cfg-version.rs:14 :7
30
60
|
31
61
LL | #[cfg(version("1.43", "1.44", "1.45"))]
32
62
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
33
63
34
64
error[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
36
66
|
37
67
LL | #[cfg(version(false))]
38
68
| ^^^^^^^^^^^^^^
@@ -41,92 +71,134 @@ LL | #[cfg(version(false))]
41
71
= help: add `#![feature(cfg_version)]` to the crate attributes to enable
42
72
43
73
error: expected a version literal
44
- --> $DIR/feature-gate-cfg-version.rs:11 :15
74
+ --> $DIR/feature-gate-cfg-version.rs:17 :15
45
75
|
46
76
LL | #[cfg(version(false))]
47
77
| ^^^^^
48
78
49
79
error[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
51
81
|
52
82
LL | #[cfg(version("foo"))]
53
83
| ^^^^^^^^^^^^^^
54
84
|
55
85
= note: see issue #64796 <https://github.com/rust-lang/rust/issues/64796> for more information
56
86
= help: add `#![feature(cfg_version)]` to the crate attributes to enable
57
87
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
60
90
|
61
91
LL | #[cfg(version("foo"))]
62
92
| ^^^^^
63
93
64
94
error[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
66
96
|
67
97
LL | #[cfg(version("999"))]
68
98
| ^^^^^^^^^^^^^^
69
99
|
70
100
= note: see issue #64796 <https://github.com/rust-lang/rust/issues/64796> for more information
71
101
= help: add `#![feature(cfg_version)]` to the crate attributes to enable
72
102
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
+
73
109
error[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
75
111
|
76
112
LL | #[cfg(version("-1"))]
77
113
| ^^^^^^^^^^^^^
78
114
|
79
115
= note: see issue #64796 <https://github.com/rust-lang/rust/issues/64796> for more information
80
116
= help: add `#![feature(cfg_version)]` to the crate attributes to enable
81
117
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
84
120
|
85
121
LL | #[cfg(version("-1"))]
86
122
| ^^^^
87
123
88
124
error[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
90
126
|
91
127
LL | #[cfg(version("65536"))]
92
128
| ^^^^^^^^^^^^^^^^
93
129
|
94
130
= note: see issue #64796 <https://github.com/rust-lang/rust/issues/64796> for more information
95
131
= help: add `#![feature(cfg_version)]` to the crate attributes to enable
96
132
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
99
135
|
100
136
LL | #[cfg(version("65536"))]
101
137
| ^^^^^^^
102
138
103
139
error[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
105
141
|
106
142
LL | #[cfg(version("0"))]
107
143
| ^^^^^^^^^^^^
108
144
|
109
145
= note: see issue #64796 <https://github.com/rust-lang/rust/issues/64796> for more information
110
146
= help: add `#![feature(cfg_version)]` to the crate attributes to enable
111
147
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
+
112
163
error[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
114
165
|
115
166
LL | #[cfg(version("1.65536.2"))]
116
167
| ^^^^^^^^^^^^^^^^^^^^
117
168
|
118
169
= note: see issue #64796 <https://github.com/rust-lang/rust/issues/64796> for more information
119
170
= help: add `#![feature(cfg_version)]` to the crate attributes to enable
120
171
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
+
121
193
error[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
123
195
|
124
196
LL | assert!(cfg!(version("1.42")));
125
197
| ^^^^^^^^^^^^^^^
126
198
|
127
199
= note: see issue #64796 <https://github.com/rust-lang/rust/issues/64796> for more information
128
200
= help: add `#![feature(cfg_version)]` to the crate attributes to enable
129
201
130
- error: aborting due to 16 previous errors
202
+ error: aborting due to 19 previous errors; 7 warnings emitted
131
203
132
204
For more information about this error, try `rustc --explain E0658`.
0 commit comments