|
| 1 | +error: expected expression, found `let` statement |
| 2 | + --> $DIR/parens.rs:10:16 |
| 3 | + | |
| 4 | +LL | () if (let 0 = 1) => {} |
| 5 | + | ^^^ |
| 6 | + |
| 7 | +error: expected expression, found `let` statement |
| 8 | + --> $DIR/parens.rs:12:18 |
| 9 | + | |
| 10 | +LL | () if (((let 0 = 1))) => {} |
| 11 | + | ^^^ |
| 12 | + |
| 13 | +error: expected expression, found `let` statement |
| 14 | + --> $DIR/parens.rs:20:16 |
| 15 | + | |
| 16 | +LL | () if (let 0 = 1) => {} |
| 17 | + | ^^^ |
| 18 | + |
| 19 | +error: expected expression, found `let` statement |
| 20 | + --> $DIR/parens.rs:23:18 |
| 21 | + | |
| 22 | +LL | () if (((let 0 = 1))) => {} |
| 23 | + | ^^^ |
| 24 | + |
| 25 | +error: `let` expressions are not supported here |
| 26 | + --> $DIR/parens.rs:20:16 |
| 27 | + | |
| 28 | +LL | () if (let 0 = 1) => {} |
| 29 | + | ^^^^^^^^^ |
| 30 | + | |
| 31 | + = note: only supported directly in conditions of `if` and `while` expressions |
| 32 | +note: `let`s wrapped in parentheses are not supported in a context with let chains |
| 33 | + --> $DIR/parens.rs:20:16 |
| 34 | + | |
| 35 | +LL | () if (let 0 = 1) => {} |
| 36 | + | ^^^^^^^^^ |
| 37 | + |
| 38 | +error: `let` expressions are not supported here |
| 39 | + --> $DIR/parens.rs:23:18 |
| 40 | + | |
| 41 | +LL | () if (((let 0 = 1))) => {} |
| 42 | + | ^^^^^^^^^ |
| 43 | + | |
| 44 | + = note: only supported directly in conditions of `if` and `while` expressions |
| 45 | +note: `let`s wrapped in parentheses are not supported in a context with let chains |
| 46 | + --> $DIR/parens.rs:23:18 |
| 47 | + | |
| 48 | +LL | () if (((let 0 = 1))) => {} |
| 49 | + | ^^^^^^^^^ |
| 50 | + |
| 51 | +error: aborting due to 6 previous errors |
| 52 | + |
0 commit comments