about summary refs log tree commit diff
path: root/tests/ui/destructuring-assignment/bad-let-in-destructure.stderr
blob: 622d714ba2fd48f2c7e8c8a017676e93ab4783aa (plain)
1
2
3
4
5
6
7
8
9
10
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