]> git.proxmox.com Git - rustc.git/blob - tests/ui/privacy/issue-75906.stderr
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / privacy / issue-75906.stderr
1 error[E0423]: cannot initialize a tuple struct which contains private fields
2 --> $DIR/issue-75906.rs:11:13
3 |
4 LL | let y = Bar(12);
5 | ^^^
6 |
7 note: constructor is not visible here due to private fields
8 --> $DIR/issue-75906.rs:4:20
9 |
10 LL | pub struct Bar(u8);
11 | ^^ private field
12 help: consider making the field publicly accessible
13 |
14 LL | pub struct Bar(pub u8);
15 | +++
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0423`.