1 error[E0658]: destructuring assignments are unstable
2 --> $DIR/issue-77218.rs:3:19
4 LL | while Some(0) = value.get(0) {
7 | cannot assign to this expression
9 = note: see issue #71126 <https://github.com/rust-lang/rust/issues/71126> for more information
10 = help: add `#![feature(destructuring_assignment)]` to the crate attributes to enable
12 error[E0070]: invalid left-hand side of assignment
13 --> $DIR/issue-77218.rs:3:19
15 LL | while Some(0) = value.get(0) {
18 | cannot assign to this expression
20 error[E0308]: mismatched types
21 --> $DIR/issue-77218.rs:3:16
23 LL | while Some(0) = value.get(0) {
24 | ^ expected integer, found `&u8`
26 help: consider dereferencing the borrow
28 LL | while Some(*0) = value.get(0) {
31 error[E0308]: mismatched types
32 --> $DIR/issue-77218.rs:3:11
34 LL | while Some(0) = value.get(0) {
35 | ^^^^^^^^^^^^^^^^^^^^^^ expected `bool`, found `()`
37 error: aborting due to 4 previous errors
39 Some errors have detailed explanations: E0070, E0308, E0658.
40 For more information about an error, try `rustc --explain E0070`.