summaryrefslogtreecommitdiffstats
path: root/src/test/ui/let-else/let-else-destructuring.stderr
blob: 95efb7116829e6252303834987765942dd2a8167 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
error: <assignment> ... else { ... } is not allowed
  --> $DIR/let-else-destructuring.rs:11:9
   |
LL |         &Foo::Nested(Some(value)) = value else { break };
   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0070]: invalid left-hand side of assignment
  --> $DIR/let-else-destructuring.rs:11:35
   |
LL |         &Foo::Nested(Some(value)) = value else { break };
   |         ------------------------- ^
   |         |
   |         cannot assign to this expression

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0070`.