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