]> git.lizzy.rs Git - rust.git/blob - tests/ui/feature-gates/feature-gate-cfg-version.stderr
Merge commit '1d8491b120223272b13451fc81265aa64f7f4d5b' into sync-from-rustfmt
[rust.git] / tests / ui / feature-gates / feature-gate-cfg-version.stderr
1 error[E0658]: `cfg(version)` is experimental and subject to change
2   --> $DIR/feature-gate-cfg-version.rs:1:7
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    |
34 LL | #[cfg(version("1.44"))]
35    |       ^^^^^^^^^^^^^^^
36    |
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
39
40 error[E0658]: `cfg(version)` is experimental and subject to change
41   --> $DIR/feature-gate-cfg-version.rs:10:11
42    |
43 LL | #[cfg(not(version("1.44")))]
44    |           ^^^^^^^^^^^^^^^
45    |
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
48
49 error[E0658]: `cfg(version)` is experimental and subject to change
50   --> $DIR/feature-gate-cfg-version.rs:14:7
51    |
52 LL | #[cfg(version("1.43", "1.44", "1.45"))]
53    |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
54    |
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
57
58 error: expected single version literal
59   --> $DIR/feature-gate-cfg-version.rs:14:7
60    |
61 LL | #[cfg(version("1.43", "1.44", "1.45"))]
62    |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
63
64 error[E0658]: `cfg(version)` is experimental and subject to change
65   --> $DIR/feature-gate-cfg-version.rs:17:7
66    |
67 LL | #[cfg(version(false))]
68    |       ^^^^^^^^^^^^^^
69    |
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
72
73 error: expected a version literal
74   --> $DIR/feature-gate-cfg-version.rs:17:15
75    |
76 LL | #[cfg(version(false))]
77    |               ^^^^^
78
79 error[E0658]: `cfg(version)` is experimental and subject to change
80   --> $DIR/feature-gate-cfg-version.rs:20:7
81    |
82 LL | #[cfg(version("foo"))]
83    |       ^^^^^^^^^^^^^^
84    |
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
87
88 warning: unknown version literal format, assuming it refers to a future version
89   --> $DIR/feature-gate-cfg-version.rs:20:15
90    |
91 LL | #[cfg(version("foo"))]
92    |               ^^^^^
93
94 error[E0658]: `cfg(version)` is experimental and subject to change
95   --> $DIR/feature-gate-cfg-version.rs:23:7
96    |
97 LL | #[cfg(version("999"))]
98    |       ^^^^^^^^^^^^^^
99    |
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
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
109 error[E0658]: `cfg(version)` is experimental and subject to change
110   --> $DIR/feature-gate-cfg-version.rs:26:7
111    |
112 LL | #[cfg(version("-1"))]
113    |       ^^^^^^^^^^^^^
114    |
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
117
118 warning: unknown version literal format, assuming it refers to a future version
119   --> $DIR/feature-gate-cfg-version.rs:26:15
120    |
121 LL | #[cfg(version("-1"))]
122    |               ^^^^
123
124 error[E0658]: `cfg(version)` is experimental and subject to change
125   --> $DIR/feature-gate-cfg-version.rs:29:7
126    |
127 LL | #[cfg(version("65536"))]
128    |       ^^^^^^^^^^^^^^^^
129    |
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
132
133 warning: unknown version literal format, assuming it refers to a future version
134   --> $DIR/feature-gate-cfg-version.rs:29:15
135    |
136 LL | #[cfg(version("65536"))]
137    |               ^^^^^^^
138
139 error[E0658]: `cfg(version)` is experimental and subject to change
140   --> $DIR/feature-gate-cfg-version.rs:32:7
141    |
142 LL | #[cfg(version("0"))]
143    |       ^^^^^^^^^^^^
144    |
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
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
163 error[E0658]: `cfg(version)` is experimental and subject to change
164   --> $DIR/feature-gate-cfg-version.rs:38:7
165    |
166 LL | #[cfg(version("1.65536.2"))]
167    |       ^^^^^^^^^^^^^^^^^^^^
168    |
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
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
193 error[E0658]: `cfg(version)` is experimental and subject to change
194   --> $DIR/feature-gate-cfg-version.rs:48:18
195    |
196 LL |     assert!(cfg!(version("1.42")));
197    |                  ^^^^^^^^^^^^^^^
198    |
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
201
202 error: aborting due to 19 previous errors; 7 warnings emitted
203
204 For more information about this error, try `rustc --explain E0658`.