fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0658]: `cfg(version)` is experimental and subject to change 2 --> $DIR/feature-gate-cfg-version.rs:1:7 3 | 4LL | #[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 10error: expected a version literal 11 --> $DIR/feature-gate-cfg-version.rs:1:15 12 | 13LL | #[cfg(version(42))] 14 | ^^ 15 16error[E0658]: `cfg(version)` is experimental and subject to change 17 --> $DIR/feature-gate-cfg-version.rs:4:7 18 | 19LL | #[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 25error: expected a version literal 26 --> $DIR/feature-gate-cfg-version.rs:4:15 27 | 28LL | #[cfg(version(1.20))] 29 | ^^^^ 30 31error[E0658]: `cfg(version)` is experimental and subject to change 32 --> $DIR/feature-gate-cfg-version.rs:7:7 33 | 34LL | #[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 40error[E0658]: `cfg(version)` is experimental and subject to change 41 --> $DIR/feature-gate-cfg-version.rs:10:11 42 | 43LL | #[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 49error[E0658]: `cfg(version)` is experimental and subject to change 50 --> $DIR/feature-gate-cfg-version.rs:14:7 51 | 52LL | #[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 58error: expected single version literal 59 --> $DIR/feature-gate-cfg-version.rs:14:7 60 | 61LL | #[cfg(version("1.43", "1.44", "1.45"))] 62 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 63 64error[E0658]: `cfg(version)` is experimental and subject to change 65 --> $DIR/feature-gate-cfg-version.rs:17:7 66 | 67LL | #[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 73error: expected a version literal 74 --> $DIR/feature-gate-cfg-version.rs:17:15 75 | 76LL | #[cfg(version(false))] 77 | ^^^^^ 78 79error[E0658]: `cfg(version)` is experimental and subject to change 80 --> $DIR/feature-gate-cfg-version.rs:20:7 81 | 82LL | #[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 88warning: unknown version literal format, assuming it refers to a future version 89 --> $DIR/feature-gate-cfg-version.rs:20:15 90 | 91LL | #[cfg(version("foo"))] 92 | ^^^^^ 93 94error[E0658]: `cfg(version)` is experimental and subject to change 95 --> $DIR/feature-gate-cfg-version.rs:23:7 96 | 97LL | #[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 103warning: unknown version literal format, assuming it refers to a future version 104 --> $DIR/feature-gate-cfg-version.rs:23:15 105 | 106LL | #[cfg(version("999"))] 107 | ^^^^^ 108 109error[E0658]: `cfg(version)` is experimental and subject to change 110 --> $DIR/feature-gate-cfg-version.rs:26:7 111 | 112LL | #[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 118warning: unknown version literal format, assuming it refers to a future version 119 --> $DIR/feature-gate-cfg-version.rs:26:15 120 | 121LL | #[cfg(version("-1"))] 122 | ^^^^ 123 124error[E0658]: `cfg(version)` is experimental and subject to change 125 --> $DIR/feature-gate-cfg-version.rs:29:7 126 | 127LL | #[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 133warning: unknown version literal format, assuming it refers to a future version 134 --> $DIR/feature-gate-cfg-version.rs:29:15 135 | 136LL | #[cfg(version("65536"))] 137 | ^^^^^^^ 138 139error[E0658]: `cfg(version)` is experimental and subject to change 140 --> $DIR/feature-gate-cfg-version.rs:32:7 141 | 142LL | #[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 148warning: unknown version literal format, assuming it refers to a future version 149 --> $DIR/feature-gate-cfg-version.rs:32:15 150 | 151LL | #[cfg(version("0"))] 152 | ^^^ 153 154error[E0658]: `cfg(version)` is experimental and subject to change 155 --> $DIR/feature-gate-cfg-version.rs:35:7 156 | 157LL | #[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 163error[E0658]: `cfg(version)` is experimental and subject to change 164 --> $DIR/feature-gate-cfg-version.rs:38:7 165 | 166LL | #[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 172warning: unknown version literal format, assuming it refers to a future version 173 --> $DIR/feature-gate-cfg-version.rs:38:15 174 | 175LL | #[cfg(version("1.65536.2"))] 176 | ^^^^^^^^^^^ 177 178error[E0658]: `cfg(version)` is experimental and subject to change 179 --> $DIR/feature-gate-cfg-version.rs:41:7 180 | 181LL | #[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 187warning: unknown version literal format, assuming it refers to a future version 188 --> $DIR/feature-gate-cfg-version.rs:41:15 189 | 190LL | #[cfg(version("1.20.0-stable"))] 191 | ^^^^^^^^^^^^^^^ 192 193error[E0658]: `cfg(version)` is experimental and subject to change 194 --> $DIR/feature-gate-cfg-version.rs:48:18 195 | 196LL | 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 202error: aborting due to 19 previous errors; 7 warnings emitted 203 204For more information about this error, try `rustc --explain E0658`.