]> git.lizzy.rs Git - rust.git/blob - src/test/ui/privacy/union-field-privacy-1.stderr
Merge commit '3e7c6dec244539970b593824334876f8b6ed0b18' into clippyup
[rust.git] / src / test / ui / privacy / union-field-privacy-1.stderr
1 error[E0451]: field `c` of union `U` is private
2   --> $DIR/union-field-privacy-1.rs:12:20
3    |
4 LL |     let u = m::U { c: 0 };
5    |                    ^^^^ private field
6
7 error[E0451]: field `c` of union `U` is private
8   --> $DIR/union-field-privacy-1.rs:16:16
9    |
10 LL |     let m::U { c } = u;
11    |                ^ private field
12
13 error: aborting due to 2 previous errors
14
15 For more information about this error, try `rustc --explain E0451`.