rust/tests/ui/destructuring-assignment/bad-let-in-destructure.stderr
2025-06-02 02:19:35 +00:00

11 lines
262 B
Plaintext

error: expected expression, found `let` statement
--> $DIR/bad-let-in-destructure.rs:11:4
|
LL | (let x = 1,) = x;
| ^^^
|
= note: only supported directly in conditions of `if` and `while` expressions
error: aborting due to 1 previous error