@@ -73,21 +73,60 @@ LL | #[cfg(version("999"))]
7373error[E0658]: `cfg(version)` is experimental and subject to change
7474 --> $DIR/feature-gate-cfg-version.rs:20:7
7575 |
76+ LL | #[cfg(version("-1"))]
77+ | ^^^^^^^^^^^^^
78+ |
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
81+
82+ error: invalid version literal
83+ --> $DIR/feature-gate-cfg-version.rs:20:15
84+ |
85+ LL | #[cfg(version("-1"))]
86+ | ^^^^
87+
88+ error[E0658]: `cfg(version)` is experimental and subject to change
89+ --> $DIR/feature-gate-cfg-version.rs:23:7
90+ |
91+ LL | #[cfg(version("65536"))]
92+ | ^^^^^^^^^^^^^^^^
93+ |
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
96+
97+ error: invalid version literal
98+ --> $DIR/feature-gate-cfg-version.rs:23:15
99+ |
100+ LL | #[cfg(version("65536"))]
101+ | ^^^^^^^
102+
103+ error[E0658]: `cfg(version)` is experimental and subject to change
104+ --> $DIR/feature-gate-cfg-version.rs:26:7
105+ |
76106LL | #[cfg(version("0"))]
77107 | ^^^^^^^^^^^^
78108 |
79109 = note: see issue #64796 <https://github.com/rust-lang/rust/issues/64796> for more information
80110 = help: add `#![feature(cfg_version)]` to the crate attributes to enable
81111
82112error[E0658]: `cfg(version)` is experimental and subject to change
83- --> $DIR/feature-gate-cfg-version.rs:27:18
113+ --> $DIR/feature-gate-cfg-version.rs:30:7
114+ |
115+ LL | #[cfg(version("1.65536.2"))]
116+ | ^^^^^^^^^^^^^^^^^^^^
117+ |
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
120+
121+ error[E0658]: `cfg(version)` is experimental and subject to change
122+ --> $DIR/feature-gate-cfg-version.rs:40:18
84123 |
85124LL | assert!(cfg!(version("1.42")));
86125 | ^^^^^^^^^^^^^^^
87126 |
88127 = note: see issue #64796 <https://github.com/rust-lang/rust/issues/64796> for more information
89128 = help: add `#![feature(cfg_version)]` to the crate attributes to enable
90129
91- error: aborting due to 11 previous errors
130+ error: aborting due to 16 previous errors
92131
93132For more information about this error, try `rustc --explain E0658`.
0 commit comments