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