fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
558 B19 linesraw
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`.