]> git.lizzy.rs Git - rust.git/blob - src/test/ui/feature-gates/feature-gate-cfg-version.stderr
Auto merge of #75936 - sdroege:chunks-exact-construction-bounds-check, r=nagisa
[rust.git] / src / test / 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("1.44"))]
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[E0658]: `cfg(version)` is experimental and subject to change
11   --> $DIR/feature-gate-cfg-version.rs:4:11
12    |
13 LL | #[cfg(not(version("1.44")))]
14    |           ^^^^^^^^^^^^^^^
15    |
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
18
19 error[E0658]: `cfg(version)` is experimental and subject to change
20   --> $DIR/feature-gate-cfg-version.rs:8:7
21    |
22 LL | #[cfg(version("1.43", "1.44", "1.45"))]
23    |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
24    |
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
27
28 error: expected single version literal
29   --> $DIR/feature-gate-cfg-version.rs:8:7
30    |
31 LL | #[cfg(version("1.43", "1.44", "1.45"))]
32    |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
33
34 error[E0658]: `cfg(version)` is experimental and subject to change
35   --> $DIR/feature-gate-cfg-version.rs:11:7
36    |
37 LL | #[cfg(version(false))]
38    |       ^^^^^^^^^^^^^^
39    |
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
42
43 error: expected a version literal
44   --> $DIR/feature-gate-cfg-version.rs:11:15
45    |
46 LL | #[cfg(version(false))]
47    |               ^^^^^
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("foo"))]
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: invalid version literal
59   --> $DIR/feature-gate-cfg-version.rs:14:15
60    |
61 LL | #[cfg(version("foo"))]
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("999"))]
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[E0658]: `cfg(version)` is experimental and subject to change
74   --> $DIR/feature-gate-cfg-version.rs:20:7
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    |
106 LL | #[cfg(version("0"))]
107    |       ^^^^^^^^^^^^
108    |
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
111
112 error[E0658]: `cfg(version)` is experimental and subject to change
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
123    |
124 LL |     assert!(cfg!(version("1.42")));
125    |                  ^^^^^^^^^^^^^^^
126    |
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
129
130 error: aborting due to 16 previous errors
131
132 For more information about this error, try `rustc --explain E0658`.