fork/rust

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

borsAuto merge of #68568 - pietroalbini:stable-next, r=pietroalbini5e1a799842b

1.41.0
577 B22 linesraw
1error[E0603]: unit struct `C` is private
2  --> $DIR/issue-13407.rs:6:8
3   |
4LL |     A::C = 1;
5   |        ^
6
7error[E0308]: mismatched types
8  --> $DIR/issue-13407.rs:6:12
9   |
10LL |     A::C = 1;
11   |            ^ expected struct `A::C`, found integer
12
13error[E0070]: invalid left-hand side expression
14  --> $DIR/issue-13407.rs:6:5
15   |
16LL |     A::C = 1;
17   |     ^^^^^^^^ left-hand of expression not valid
18
19error: aborting due to 3 previous errors
20
21Some errors have detailed explanations: E0070, E0308, E0603.
22For more information about an error, try `rustc --explain E0070`.