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