fork/rust

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

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
746 B30 linesraw
1error[E0603]: unit struct `C` is private
2  --> $DIR/issue-13407.rs:6:8
3   |
4LL |     A::C = 1;
5   |        ^ this unit struct is private
6   |
7note: the unit struct `C` is defined here
8  --> $DIR/issue-13407.rs:2:5
9   |
10LL |     struct C;
11   |     ^^^^^^^^^
12
13error[E0308]: mismatched types
14  --> $DIR/issue-13407.rs:6:12
15   |
16LL |     A::C = 1;
17   |            ^ expected struct `A::C`, found integer
18
19error[E0070]: invalid left-hand side of assignment
20  --> $DIR/issue-13407.rs:6:10
21   |
22LL |     A::C = 1;
23   |     ---- ^
24   |     |
25   |     cannot assign to this expression
26
27error: aborting due to 3 previous errors
28
29Some errors have detailed explanations: E0070, E0308, E0603.
30For more information about an error, try `rustc --explain E0070`.