]> git.lizzy.rs Git - rust.git/blob - src/test/ui/bad/bad-expr-lhs.stderr
Auto merge of #81507 - weiznich:add_diesel_to_cargo_test, r=Mark-Simulacrum
[rust.git] / src / test / ui / bad / bad-expr-lhs.stderr
1 error[E0658]: destructuring assignments are unstable
2   --> $DIR/bad-expr-lhs.rs:4:12
3    |
4 LL |     (1, 2) = (3, 4);
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[E0658]: destructuring assignments are unstable
13   --> $DIR/bad-expr-lhs.rs:9:12
14    |
15 LL |     (a, b) = (3, 4);
16    |     ------ ^
17    |     |
18    |     cannot assign to this expression
19    |
20    = note: see issue #71126 <https://github.com/rust-lang/rust/issues/71126> for more information
21    = help: add `#![feature(destructuring_assignment)]` to the crate attributes to enable
22
23 error[E0070]: invalid left-hand side of assignment
24   --> $DIR/bad-expr-lhs.rs:2:7
25    |
26 LL |     1 = 2;
27    |     - ^
28    |     |
29    |     cannot assign to this expression
30
31 error[E0067]: invalid left-hand side of assignment
32   --> $DIR/bad-expr-lhs.rs:3:7
33    |
34 LL |     1 += 2;
35    |     - ^^
36    |     |
37    |     cannot assign to this expression
38
39 error[E0070]: invalid left-hand side of assignment
40   --> $DIR/bad-expr-lhs.rs:4:12
41    |
42 LL |     (1, 2) = (3, 4);
43    |      -     ^
44    |      |
45    |      cannot assign to this expression
46
47 error[E0070]: invalid left-hand side of assignment
48   --> $DIR/bad-expr-lhs.rs:4:12
49    |
50 LL |     (1, 2) = (3, 4);
51    |         -  ^
52    |         |
53    |         cannot assign to this expression
54
55 error[E0070]: invalid left-hand side of assignment
56   --> $DIR/bad-expr-lhs.rs:11:10
57    |
58 LL |     None = Some(3);
59    |     ---- ^
60    |     |
61    |     cannot assign to this expression
62
63 error: aborting due to 7 previous errors
64
65 Some errors have detailed explanations: E0067, E0070, E0658.
66 For more information about an error, try `rustc --explain E0067`.