]> git.lizzy.rs Git - rust.git/blob - src/test/ui/typeck/issue-82772.stderr
Rollup merge of #100220 - scottmcm:fix-by-ref-sized, r=joshtriplett
[rust.git] / src / test / ui / typeck / issue-82772.stderr
1 error[E0451]: field `0` of struct `Box` is private
2   --> $DIR/issue-82772.rs:5:15
3    |
4 LL |     let Box { 0: _, .. }: Box<()>;
5    |               ^^^^ private field
6
7 error[E0451]: field `1` of struct `Box` is private
8   --> $DIR/issue-82772.rs:6:15
9    |
10 LL |     let Box { 1: _, .. }: Box<()>;
11    |               ^^^^ private field
12
13 error[E0451]: field `1` of struct `ModPrivateStruct` is private
14   --> $DIR/issue-82772.rs:7:28
15    |
16 LL |     let ModPrivateStruct { 1: _, .. } = ModPrivateStruct::default();
17    |                            ^^^^ private field
18
19 error: aborting due to 3 previous errors
20
21 For more information about this error, try `rustc --explain E0451`.