1 error[E0658]: `cfg(version)` is experimental and subject to change
2 --> $DIR/feature-gate-cfg-version.rs:1:7
4 LL | #[cfg(version("1.44"))]
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[E0658]: `cfg(version)` is experimental and subject to change
11 --> $DIR/feature-gate-cfg-version.rs:4:11
13 LL | #[cfg(not(version("1.44")))]
16 = note: see issue #64796 <https://github.com/rust-lang/rust/issues/64796> for more information
17 = help: add `#![feature(cfg_version)]` to the crate attributes to enable
19 error[E0658]: `cfg(version)` is experimental and subject to change
20 --> $DIR/feature-gate-cfg-version.rs:8:7
22 LL | #[cfg(version("1.43", "1.44", "1.45"))]
23 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
25 = note: see issue #64796 <https://github.com/rust-lang/rust/issues/64796> for more information
26 = help: add `#![feature(cfg_version)]` to the crate attributes to enable
28 error: expected single version literal
29 --> $DIR/feature-gate-cfg-version.rs:8:7
31 LL | #[cfg(version("1.43", "1.44", "1.45"))]
32 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
34 error[E0658]: `cfg(version)` is experimental and subject to change
35 --> $DIR/feature-gate-cfg-version.rs:11:7
37 LL | #[cfg(version(false))]
40 = note: see issue #64796 <https://github.com/rust-lang/rust/issues/64796> for more information
41 = help: add `#![feature(cfg_version)]` to the crate attributes to enable
43 error: expected a version literal
44 --> $DIR/feature-gate-cfg-version.rs:11:15
46 LL | #[cfg(version(false))]
49 error[E0658]: `cfg(version)` is experimental and subject to change
50 --> $DIR/feature-gate-cfg-version.rs:14:7
52 LL | #[cfg(version("foo"))]
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: invalid version literal
59 --> $DIR/feature-gate-cfg-version.rs:14:15
61 LL | #[cfg(version("foo"))]
64 error[E0658]: `cfg(version)` is experimental and subject to change
65 --> $DIR/feature-gate-cfg-version.rs:17:7
67 LL | #[cfg(version("999"))]
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[E0658]: `cfg(version)` is experimental and subject to change
74 --> $DIR/feature-gate-cfg-version.rs:20:7
76 LL | #[cfg(version("-1"))]
79 = note: see issue #64796 <https://github.com/rust-lang/rust/issues/64796> for more information
80 = help: add `#![feature(cfg_version)]` to the crate attributes to enable
82 error: invalid version literal
83 --> $DIR/feature-gate-cfg-version.rs:20:15
85 LL | #[cfg(version("-1"))]
88 error[E0658]: `cfg(version)` is experimental and subject to change
89 --> $DIR/feature-gate-cfg-version.rs:23:7
91 LL | #[cfg(version("65536"))]
94 = note: see issue #64796 <https://github.com/rust-lang/rust/issues/64796> for more information
95 = help: add `#![feature(cfg_version)]` to the crate attributes to enable
97 error: invalid version literal
98 --> $DIR/feature-gate-cfg-version.rs:23:15
100 LL | #[cfg(version("65536"))]
103 error[E0658]: `cfg(version)` is experimental and subject to change
104 --> $DIR/feature-gate-cfg-version.rs:26:7
106 LL | #[cfg(version("0"))]
109 = note: see issue #64796 <https://github.com/rust-lang/rust/issues/64796> for more information
110 = help: add `#![feature(cfg_version)]` to the crate attributes to enable
112 error[E0658]: `cfg(version)` is experimental and subject to change
113 --> $DIR/feature-gate-cfg-version.rs:30:7
115 LL | #[cfg(version("1.65536.2"))]
116 | ^^^^^^^^^^^^^^^^^^^^
118 = note: see issue #64796 <https://github.com/rust-lang/rust/issues/64796> for more information
119 = help: add `#![feature(cfg_version)]` to the crate attributes to enable
121 error[E0658]: `cfg(version)` is experimental and subject to change
122 --> $DIR/feature-gate-cfg-version.rs:40:18
124 LL | assert!(cfg!(version("1.42")));
127 = note: see issue #64796 <https://github.com/rust-lang/rust/issues/64796> for more information
128 = help: add `#![feature(cfg_version)]` to the crate attributes to enable
130 error: aborting due to 16 previous errors
132 For more information about this error, try `rustc --explain E0658`.