1 error[E0658]: `cfg(version)` is experimental and subject to change
2 --> $DIR/feature-gate-cfg-version.rs:1:7
4 LL | #[cfg(version(42))]
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
10 error: expected a version literal
11 --> $DIR/feature-gate-cfg-version.rs:1:15
13 LL | #[cfg(version(42))]
16 error[E0658]: `cfg(version)` is experimental and subject to change
17 --> $DIR/feature-gate-cfg-version.rs:4:7
19 LL | #[cfg(version(1.20))]
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
25 error: expected a version literal
26 --> $DIR/feature-gate-cfg-version.rs:4:15
28 LL | #[cfg(version(1.20))]
31 error[E0658]: `cfg(version)` is experimental and subject to change
32 --> $DIR/feature-gate-cfg-version.rs:7:7
34 LL | #[cfg(version("1.44"))]
37 = note: see issue #64796 <https://github.com/rust-lang/rust/issues/64796> for more information
38 = help: add `#![feature(cfg_version)]` to the crate attributes to enable
40 error[E0658]: `cfg(version)` is experimental and subject to change
41 --> $DIR/feature-gate-cfg-version.rs:10:11
43 LL | #[cfg(not(version("1.44")))]
46 = note: see issue #64796 <https://github.com/rust-lang/rust/issues/64796> for more information
47 = help: add `#![feature(cfg_version)]` to the crate attributes to enable
49 error[E0658]: `cfg(version)` is experimental and subject to change
50 --> $DIR/feature-gate-cfg-version.rs:14:7
52 LL | #[cfg(version("1.43", "1.44", "1.45"))]
53 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
55 = note: see issue #64796 <https://github.com/rust-lang/rust/issues/64796> for more information
56 = help: add `#![feature(cfg_version)]` to the crate attributes to enable
58 error: expected single version literal
59 --> $DIR/feature-gate-cfg-version.rs:14:7
61 LL | #[cfg(version("1.43", "1.44", "1.45"))]
62 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
64 error[E0658]: `cfg(version)` is experimental and subject to change
65 --> $DIR/feature-gate-cfg-version.rs:17:7
67 LL | #[cfg(version(false))]
70 = note: see issue #64796 <https://github.com/rust-lang/rust/issues/64796> for more information
71 = help: add `#![feature(cfg_version)]` to the crate attributes to enable
73 error: expected a version literal
74 --> $DIR/feature-gate-cfg-version.rs:17:15
76 LL | #[cfg(version(false))]
79 error[E0658]: `cfg(version)` is experimental and subject to change
80 --> $DIR/feature-gate-cfg-version.rs:20:7
82 LL | #[cfg(version("foo"))]
85 = note: see issue #64796 <https://github.com/rust-lang/rust/issues/64796> for more information
86 = help: add `#![feature(cfg_version)]` to the crate attributes to enable
88 warning: unknown version literal format, assuming it refers to a future version
89 --> $DIR/feature-gate-cfg-version.rs:20:15
91 LL | #[cfg(version("foo"))]
94 error[E0658]: `cfg(version)` is experimental and subject to change
95 --> $DIR/feature-gate-cfg-version.rs:23:7
97 LL | #[cfg(version("999"))]
100 = note: see issue #64796 <https://github.com/rust-lang/rust/issues/64796> for more information
101 = help: add `#![feature(cfg_version)]` to the crate attributes to enable
103 warning: unknown version literal format, assuming it refers to a future version
104 --> $DIR/feature-gate-cfg-version.rs:23:15
106 LL | #[cfg(version("999"))]
109 error[E0658]: `cfg(version)` is experimental and subject to change
110 --> $DIR/feature-gate-cfg-version.rs:26:7
112 LL | #[cfg(version("-1"))]
115 = note: see issue #64796 <https://github.com/rust-lang/rust/issues/64796> for more information
116 = help: add `#![feature(cfg_version)]` to the crate attributes to enable
118 warning: unknown version literal format, assuming it refers to a future version
119 --> $DIR/feature-gate-cfg-version.rs:26:15
121 LL | #[cfg(version("-1"))]
124 error[E0658]: `cfg(version)` is experimental and subject to change
125 --> $DIR/feature-gate-cfg-version.rs:29:7
127 LL | #[cfg(version("65536"))]
130 = note: see issue #64796 <https://github.com/rust-lang/rust/issues/64796> for more information
131 = help: add `#![feature(cfg_version)]` to the crate attributes to enable
133 warning: unknown version literal format, assuming it refers to a future version
134 --> $DIR/feature-gate-cfg-version.rs:29:15
136 LL | #[cfg(version("65536"))]
139 error[E0658]: `cfg(version)` is experimental and subject to change
140 --> $DIR/feature-gate-cfg-version.rs:32:7
142 LL | #[cfg(version("0"))]
145 = note: see issue #64796 <https://github.com/rust-lang/rust/issues/64796> for more information
146 = help: add `#![feature(cfg_version)]` to the crate attributes to enable
148 warning: unknown version literal format, assuming it refers to a future version
149 --> $DIR/feature-gate-cfg-version.rs:32:15
151 LL | #[cfg(version("0"))]
154 error[E0658]: `cfg(version)` is experimental and subject to change
155 --> $DIR/feature-gate-cfg-version.rs:35:7
157 LL | #[cfg(version("1.0"))]
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
163 error[E0658]: `cfg(version)` is experimental and subject to change
164 --> $DIR/feature-gate-cfg-version.rs:38:7
166 LL | #[cfg(version("1.65536.2"))]
167 | ^^^^^^^^^^^^^^^^^^^^
169 = note: see issue #64796 <https://github.com/rust-lang/rust/issues/64796> for more information
170 = help: add `#![feature(cfg_version)]` to the crate attributes to enable
172 warning: unknown version literal format, assuming it refers to a future version
173 --> $DIR/feature-gate-cfg-version.rs:38:15
175 LL | #[cfg(version("1.65536.2"))]
178 error[E0658]: `cfg(version)` is experimental and subject to change
179 --> $DIR/feature-gate-cfg-version.rs:41:7
181 LL | #[cfg(version("1.20.0-stable"))]
182 | ^^^^^^^^^^^^^^^^^^^^^^^^
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
187 warning: unknown version literal format, assuming it refers to a future version
188 --> $DIR/feature-gate-cfg-version.rs:41:15
190 LL | #[cfg(version("1.20.0-stable"))]
193 error[E0658]: `cfg(version)` is experimental and subject to change
194 --> $DIR/feature-gate-cfg-version.rs:48:18
196 LL | assert!(cfg!(version("1.42")));
199 = note: see issue #64796 <https://github.com/rust-lang/rust/issues/64796> for more information
200 = help: add `#![feature(cfg_version)]` to the crate attributes to enable
202 error: aborting due to 19 previous errors; 7 warnings emitted
204 For more information about this error, try `rustc --explain E0658`.