fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: expected expression, found `let` statement 2 --> $DIR/invalid-let-in-a-valid-let-context.rs:8:19 3 | 4LL | let _ = &&let Some(x) = Some(42); 5 | ^^^ 6 | 7 = note: only supported directly in conditions of `if` and `while` expressions 8 9error: expected expression, found `let` statement 10 --> $DIR/invalid-let-in-a-valid-let-context.rs:13:47 11 | 12LL | if let Some(elem) = _opt && [1, 2, 3][let _ = &&let Some(x) = Some(42)] = 1 { 13 | ^^^ 14 | 15 = note: only supported directly in conditions of `if` and `while` expressions 16 17error: expected expression, found `let` statement 18 --> $DIR/invalid-let-in-a-valid-let-context.rs:13:57 19 | 20LL | if let Some(elem) = _opt && [1, 2, 3][let _ = &&let Some(x) = Some(42)] = 1 { 21 | ^^^ 22 | 23 = note: only supported directly in conditions of `if` and `while` expressions 24 25error: expected expression, found `let` statement 26 --> $DIR/invalid-let-in-a-valid-let-context.rs:13:12 27 | 28LL | if let Some(elem) = _opt && [1, 2, 3][let _ = &&let Some(x) = Some(42)] = 1 { 29 | ^^^^^^^^^^^^^^^^^^^^^ 30 | 31 = note: only supported directly in conditions of `if` and `while` expressions 32 33error: expected expression, found `let` statement 34 --> $DIR/invalid-let-in-a-valid-let-context.rs:24:23 35 | 36LL | [1, 2, 3][let _ = ()]; 37 | ^^^ 38 | 39 = note: only supported directly in conditions of `if` and `while` expressions 40 41error: expected expression, found `let` statement 42 --> $DIR/invalid-let-in-a-valid-let-context.rs:33:47 43 | 44LL | if let Some(elem) = _opt && [1, 2, 3][let _ = ()] = 1 { 45 | ^^^ 46 | 47 = note: only supported directly in conditions of `if` and `while` expressions 48 49error: expected expression, found `let` statement 50 --> $DIR/invalid-let-in-a-valid-let-context.rs:33:12 51 | 52LL | if let Some(elem) = _opt && [1, 2, 3][let _ = ()] = 1 { 53 | ^^^^^^^^^^^^^^^^^^^^^ 54 | 55 = note: only supported directly in conditions of `if` and `while` expressions 56 57error: expected expression, found `let` statement 58 --> $DIR/invalid-let-in-a-valid-let-context.rs:42:21 59 | 60LL | let x = let y = 1; 61 | ^^^ 62 | 63 = note: only supported directly in conditions of `if` and `while` expressions 64 65error: aborting due to 8 previous errors 66