]>
Commit | Line | Data |
---|---|---|
29967ef6 XL |
1 | error[E0658]: destructuring assignments are unstable |
2 | --> $DIR/issue-77218.rs:3:19 | |
3 | | | |
4 | LL | while Some(0) = value.get(0) { | |
5 | | ------- ^ | |
6 | | | | |
7 | | cannot assign to this expression | |
8 | | | |
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 | |
11 | ||
12 | error[E0070]: invalid left-hand side of assignment | |
13 | --> $DIR/issue-77218.rs:3:19 | |
14 | | | |
15 | LL | while Some(0) = value.get(0) { | |
16 | | - ^ | |
17 | | | | |
18 | | cannot assign to this expression | |
19 | ||
20 | error[E0308]: mismatched types | |
21 | --> $DIR/issue-77218.rs:3:16 | |
22 | | | |
23 | LL | while Some(0) = value.get(0) { | |
94222f64 XL |
24 | | ^ expected integer, found `&u8` |
25 | | | |
26 | help: consider dereferencing the borrow | |
27 | | | |
28 | LL | while Some(*0) = value.get(0) { | |
29 | | + | |
29967ef6 | 30 | |
1b1a35ee XL |
31 | error[E0308]: mismatched types |
32 | --> $DIR/issue-77218.rs:3:11 | |
33 | | | |
34 | LL | while Some(0) = value.get(0) { | |
35 | | ^^^^^^^^^^^^^^^^^^^^^^ expected `bool`, found `()` | |
1b1a35ee | 36 | |
29967ef6 | 37 | error: aborting due to 4 previous errors |
1b1a35ee | 38 | |
29967ef6 XL |
39 | Some errors have detailed explanations: E0070, E0308, E0658. |
40 | For more information about an error, try `rustc --explain E0070`. |