fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
858 B34 linesraw
1error[E0070]: invalid left-hand side of assignment
2  --> $DIR/E0070.rs:6:16
3   |
4LL |     SOME_CONST = 14;
5   |     ---------- ^
6   |     |
7   |     cannot assign to this expression
8
9error[E0070]: invalid left-hand side of assignment
10  --> $DIR/E0070.rs:7:7
11   |
12LL |     1 = 3;
13   |     - ^
14   |     |
15   |     cannot assign to this expression
16
17error[E0308]: mismatched types
18  --> $DIR/E0070.rs:8:25
19   |
20LL |     some_other_func() = 4;
21   |                         ^ expected `()`, found integer
22
23error[E0070]: invalid left-hand side of assignment
24  --> $DIR/E0070.rs:8:23
25   |
26LL |     some_other_func() = 4;
27   |     ----------------- ^
28   |     |
29   |     cannot assign to this expression
30
31error: aborting due to 4 previous errors
32
33Some errors have detailed explanations: E0070, E0308.
34For more information about an error, try `rustc --explain E0070`.