]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-77218.stderr
Auto merge of #87150 - rusticstuff:simplify_wrapping_neg, r=m-ou-se
[rust.git] / src / test / ui / issues / issue-77218.stderr
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) {
24    |                ^ expected integer, found `&u8`
25    |
26 help: consider dereferencing the borrow
27    |
28 LL |     while Some(*0) = value.get(0) {
29    |                ^
30
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 `()`
36
37 error: aborting due to 4 previous errors
38
39 Some errors have detailed explanations: E0070, E0308, E0658.
40 For more information about an error, try `rustc --explain E0070`.