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