fork/rust

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

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
651 B25 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   |
13   = note: expected type `A::C`
14              found type `{integer}`
15
16error[E0070]: invalid left-hand side expression
17  --> $DIR/issue-13407.rs:6:5
18   |
19LL |     A::C = 1;
20   |     ^^^^^^^^ left-hand of expression not valid
21
22error: aborting due to 3 previous errors
23
24Some errors have detailed explanations: E0070, E0308, E0603.
25For more information about an error, try `rustc --explain E0070`.