]> git.lizzy.rs Git - rust.git/blob - src/test/ui/destructuring-assignment/bad-expr-lhs.stderr
Rollup merge of #105758 - Nilstrieb:typeck-results-mod, r=compiler-errors
[rust.git] / src / test / ui / destructuring-assignment / bad-expr-lhs.stderr
1 error[E0070]: invalid left-hand side of assignment
2   --> $DIR/bad-expr-lhs.rs:2:7
3    |
4 LL |     1 = 2;
5    |     - ^
6    |     |
7    |     cannot assign to this expression
8
9 error[E0067]: invalid left-hand side of assignment
10   --> $DIR/bad-expr-lhs.rs:3:7
11    |
12 LL |     1 += 2;
13    |     - ^^
14    |     |
15    |     cannot assign to this expression
16
17 error[E0070]: invalid left-hand side of assignment
18   --> $DIR/bad-expr-lhs.rs:4:12
19    |
20 LL |     (1, 2) = (3, 4);
21    |      -     ^
22    |      |
23    |      cannot assign to this expression
24
25 error[E0070]: invalid left-hand side of assignment
26   --> $DIR/bad-expr-lhs.rs:4:12
27    |
28 LL |     (1, 2) = (3, 4);
29    |         -  ^
30    |         |
31    |         cannot assign to this expression
32
33 error[E0070]: invalid left-hand side of assignment
34   --> $DIR/bad-expr-lhs.rs:8:10
35    |
36 LL |     None = Some(3);
37    |     ---- ^
38    |     |
39    |     cannot assign to this expression
40
41 error: aborting due to 5 previous errors
42
43 Some errors have detailed explanations: E0067, E0070.
44 For more information about an error, try `rustc --explain E0067`.