]>
Commit | Line | Data |
---|---|---|
1b1a35ee | 1 | error[E0451]: field `c` of union `U` is private |
0731742a | 2 | --> $DIR/union-field-privacy-1.rs:12:20 |
b7449926 | 3 | | |
532ac7d7 | 4 | LL | let u = m::U { c: 0 }; |
ba9703b0 | 5 | | ^^^^ private field |
b7449926 | 6 | |
1b1a35ee | 7 | error[E0451]: field `c` of union `U` is private |
0731742a | 8 | --> $DIR/union-field-privacy-1.rs:16:16 |
b7449926 | 9 | | |
532ac7d7 | 10 | LL | let m::U { c } = u; |
ba9703b0 | 11 | | ^ private field |
b7449926 XL |
12 | |
13 | error: aborting due to 2 previous errors | |
14 | ||
15 | For more information about this error, try `rustc --explain E0451`. |