fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: expected expression, found `let` statement 2 --> $DIR/feature-gate.rs:10:16 3 | 4LL | () if (let 0 = 1) => {} 5 | ^^^^^^^^^ 6 | 7 = note: only supported directly in conditions of `if` and `while` expressions 8note: `let`s wrapped in parentheses are not supported in a context with let chains 9 --> $DIR/feature-gate.rs:10:16 10 | 11LL | () if (let 0 = 1) => {} 12 | ^^^^^^^^^ 13 14error: expected expression, found `let` statement 15 --> $DIR/feature-gate.rs:13:18 16 | 17LL | () if (((let 0 = 1))) => {} 18 | ^^^^^^^^^ 19 | 20 = note: only supported directly in conditions of `if` and `while` expressions 21note: `let`s wrapped in parentheses are not supported in a context with let chains 22 --> $DIR/feature-gate.rs:13:18 23 | 24LL | () if (((let 0 = 1))) => {} 25 | ^^^^^^^^^ 26 27error: expected expression, found `let` statement 28 --> $DIR/feature-gate.rs:24:16 29 | 30LL | () if (let 0 = 1) && true => {} 31 | ^^^^^^^^^ 32 | 33 = note: only supported directly in conditions of `if` and `while` expressions 34note: `let`s wrapped in parentheses are not supported in a context with let chains 35 --> $DIR/feature-gate.rs:24:16 36 | 37LL | () if (let 0 = 1) && true => {} 38 | ^^^^^^^^^ 39 40error: expected expression, found `let` statement 41 --> $DIR/feature-gate.rs:27:24 42 | 43LL | () if true && (let 0 = 1) => {} 44 | ^^^^^^^^^ 45 | 46 = note: only supported directly in conditions of `if` and `while` expressions 47note: `let`s wrapped in parentheses are not supported in a context with let chains 48 --> $DIR/feature-gate.rs:27:24 49 | 50LL | () if true && (let 0 = 1) => {} 51 | ^^^^^^^^^ 52 53error: expected expression, found `let` statement 54 --> $DIR/feature-gate.rs:30:16 55 | 56LL | () if (let 0 = 1) && (let 0 = 1) => {} 57 | ^^^^^^^^^ 58 | 59 = note: only supported directly in conditions of `if` and `while` expressions 60note: `let`s wrapped in parentheses are not supported in a context with let chains 61 --> $DIR/feature-gate.rs:30:16 62 | 63LL | () if (let 0 = 1) && (let 0 = 1) => {} 64 | ^^^^^^^^^ 65 66error: expected expression, found `let` statement 67 --> $DIR/feature-gate.rs:30:31 68 | 69LL | () if (let 0 = 1) && (let 0 = 1) => {} 70 | ^^^^^^^^^ 71 | 72 = note: only supported directly in conditions of `if` and `while` expressions 73note: `let`s wrapped in parentheses are not supported in a context with let chains 74 --> $DIR/feature-gate.rs:30:31 75 | 76LL | () if (let 0 = 1) && (let 0 = 1) => {} 77 | ^^^^^^^^^ 78 79error: expected expression, found `let` statement 80 --> $DIR/feature-gate.rs:34:42 81 | 82LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {} 83 | ^^^^^^^^^ 84 | 85 = note: only supported directly in conditions of `if` and `while` expressions 86note: `let`s wrapped in parentheses are not supported in a context with let chains 87 --> $DIR/feature-gate.rs:34:42 88 | 89LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {} 90 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 91 92error: expected expression, found `let` statement 93 --> $DIR/feature-gate.rs:34:55 94 | 95LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {} 96 | ^^^^^^^^^ 97 | 98 = note: only supported directly in conditions of `if` and `while` expressions 99note: `let`s wrapped in parentheses are not supported in a context with let chains 100 --> $DIR/feature-gate.rs:34:42 101 | 102LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {} 103 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 104 105error: expected expression, found `let` statement 106 --> $DIR/feature-gate.rs:34:68 107 | 108LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {} 109 | ^^^^^^^^^ 110 | 111 = note: only supported directly in conditions of `if` and `while` expressions 112note: `let`s wrapped in parentheses are not supported in a context with let chains 113 --> $DIR/feature-gate.rs:34:42 114 | 115LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {} 116 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 117 118error: expected expression, found `let` statement 119 --> $DIR/feature-gate.rs:60:16 120 | 121LL | use_expr!((let 0 = 1 && 0 == 0)); 122 | ^^^ 123 | 124 = note: only supported directly in conditions of `if` and `while` expressions 125 126error: expected expression, found `let` statement 127 --> $DIR/feature-gate.rs:62:16 128 | 129LL | use_expr!((let 0 = 1)); 130 | ^^^ 131 | 132 = note: only supported directly in conditions of `if` and `while` expressions 133 134error: no rules expected the token `let` 135 --> $DIR/feature-gate.rs:70:15 136 | 137LL | macro_rules! use_expr { 138 | --------------------- when calling this macro 139... 140LL | use_expr!(let 0 = 1); 141 | ^^^ no rules expected this token in macro call 142 | 143note: while trying to match meta-variable `$e:expr` 144 --> $DIR/feature-gate.rs:53:10 145 | 146LL | ($e:expr) => { 147 | ^^^^^^^ 148 149error[E0658]: `if let` guards are experimental 150 --> $DIR/feature-gate.rs:7:12 151 | 152LL | () if let 0 = 1 => {} 153 | ^^^^^^^^^^^^ 154 | 155 = note: see issue #51114 <https://github.com/rust-lang/rust/issues/51114> for more information 156 = help: add `#![feature(if_let_guard)]` to the crate attributes to enable 157 = help: you can write `if matches!(<expr>, <pattern>)` instead of `if let <pattern> = <expr>` 158 159error[E0658]: `if let` guards are experimental 160 --> $DIR/feature-gate.rs:16:12 161 | 162LL | () if true && let 0 = 1 => {} 163 | ^^^^^^^^^^^^^^^^^^^^ 164 | 165 = note: see issue #51114 <https://github.com/rust-lang/rust/issues/51114> for more information 166 = help: add `#![feature(if_let_guard)]` to the crate attributes to enable 167 = help: you can write `if matches!(<expr>, <pattern>)` instead of `if let <pattern> = <expr>` 168 169error[E0658]: `if let` guards are experimental 170 --> $DIR/feature-gate.rs:20:12 171 | 172LL | () if let 0 = 1 && true => {} 173 | ^^^^^^^^^^^^^^^^^^^^ 174 | 175 = note: see issue #51114 <https://github.com/rust-lang/rust/issues/51114> for more information 176 = help: add `#![feature(if_let_guard)]` to the crate attributes to enable 177 = help: you can write `if matches!(<expr>, <pattern>)` instead of `if let <pattern> = <expr>` 178 179error[E0658]: `if let` guards are experimental 180 --> $DIR/feature-gate.rs:34:12 181 | 182LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {} 183 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 184 | 185 = note: see issue #51114 <https://github.com/rust-lang/rust/issues/51114> for more information 186 = help: add `#![feature(if_let_guard)]` to the crate attributes to enable 187 = help: you can write `if matches!(<expr>, <pattern>)` instead of `if let <pattern> = <expr>` 188 189error[E0658]: `if let` guards are experimental 190 --> $DIR/feature-gate.rs:43:12 191 | 192LL | () if let Range { start: _, end: _ } = (true..true) && false => {} 193 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 194 | 195 = note: see issue #51114 <https://github.com/rust-lang/rust/issues/51114> for more information 196 = help: add `#![feature(if_let_guard)]` to the crate attributes to enable 197 = help: you can write `if matches!(<expr>, <pattern>)` instead of `if let <pattern> = <expr>` 198 199error[E0658]: `if let` guards are experimental 200 --> $DIR/feature-gate.rs:66:12 201 | 202LL | () if let 0 = 1 => {} 203 | ^^^^^^^^^^^^ 204 | 205 = note: see issue #51114 <https://github.com/rust-lang/rust/issues/51114> for more information 206 = help: add `#![feature(if_let_guard)]` to the crate attributes to enable 207 = help: you can write `if matches!(<expr>, <pattern>)` instead of `if let <pattern> = <expr>` 208 209error[E0658]: `let` expressions in this position are unstable 210 --> $DIR/feature-gate.rs:16:23 211 | 212LL | () if true && let 0 = 1 => {} 213 | ^^^^^^^^^ 214 | 215 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information 216 = help: add `#![feature(let_chains)]` to the crate attributes to enable 217 218error[E0658]: `let` expressions in this position are unstable 219 --> $DIR/feature-gate.rs:20:15 220 | 221LL | () if let 0 = 1 && true => {} 222 | ^^^^^^^^^ 223 | 224 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information 225 = help: add `#![feature(let_chains)]` to the crate attributes to enable 226 227error[E0658]: `let` expressions in this position are unstable 228 --> $DIR/feature-gate.rs:34:15 229 | 230LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {} 231 | ^^^^^^^^^ 232 | 233 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information 234 = help: add `#![feature(let_chains)]` to the crate attributes to enable 235 236error[E0658]: `let` expressions in this position are unstable 237 --> $DIR/feature-gate.rs:34:28 238 | 239LL | () if let 0 = 1 && let 1 = 2 && (let 2 = 3 && let 3 = 4 && let 4 = 5) => {} 240 | ^^^^^^^^^ 241 | 242 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information 243 = help: add `#![feature(let_chains)]` to the crate attributes to enable 244 245error[E0658]: `let` expressions in this position are unstable 246 --> $DIR/feature-gate.rs:43:15 247 | 248LL | () if let Range { start: _, end: _ } = (true..true) && false => {} 249 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 250 | 251 = note: see issue #53667 <https://github.com/rust-lang/rust/issues/53667> for more information 252 = help: add `#![feature(let_chains)]` to the crate attributes to enable 253 254error: aborting due to 23 previous errors 255 256For more information about this error, try `rustc --explain E0658`.