fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
600 B17 linesraw
1error: <assignment> ... else { ... } is not allowed
2  --> $DIR/let-else-destructuring.rs:10:9
3   |
4LL |         &Foo::Nested(Some(value)) = value else { break };
5   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6
7error[E0070]: invalid left-hand side of assignment
8  --> $DIR/let-else-destructuring.rs:10:35
9   |
10LL |         &Foo::Nested(Some(value)) = value else { break };
11   |         ------------------------- ^
12   |         |
13   |         cannot assign to this expression
14
15error: aborting due to 2 previous errors
16
17For more information about this error, try `rustc --explain E0070`.