fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

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