summaryrefslogtreecommitdiffstats
path: root/tests/ui/privacy/issue-75906.stderr
blob: c5bbef97c3440106a5d9a072161b8333e1f7f2f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
error[E0423]: cannot initialize a tuple struct which contains private fields
  --> $DIR/issue-75906.rs:11:13
   |
LL |     let y = Bar(12);
   |             ^^^
   |
note: constructor is not visible here due to private fields
  --> $DIR/issue-75906.rs:4:20
   |
LL |     pub struct Bar(u8);
   |                    ^^ private field
help: consider making the field publicly accessible
   |
LL |     pub struct Bar(pub u8);
   |                    +++

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0423`.