@@ -73,21 +73,60 @@ LL | #[cfg(version("999"))]
73
73
error[E0658]: `cfg(version)` is experimental and subject to change
74
74
--> $DIR/feature-gate-cfg-version.rs:20:7
75
75
|
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
+ |
76
106
LL | #[cfg(version("0"))]
77
107
| ^^^^^^^^^^^^
78
108
|
79
109
= note: see issue #64796 <https://github.com/rust-lang/rust/issues/64796> for more information
80
110
= help: add `#![feature(cfg_version)]` to the crate attributes to enable
81
111
82
112
error[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
84
123
|
85
124
LL | assert!(cfg!(version("1.42")));
86
125
| ^^^^^^^^^^^^^^^
87
126
|
88
127
= note: see issue #64796 <https://github.com/rust-lang/rust/issues/64796> for more information
89
128
= help: add `#![feature(cfg_version)]` to the crate attributes to enable
90
129
91
- error: aborting due to 11 previous errors
130
+ error: aborting due to 16 previous errors
92
131
93
132
For more information about this error, try `rustc --explain E0658`.
0 commit comments