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