1 error[E0532]: cannot match against a tuple struct which contains private fields
2 --> $DIR/issue-75907.rs:15:9
4 LL | let Bar(x, y, Foo(z)) = make_bar();
7 note: constructor is not visible here due to private fields
8 --> $DIR/issue-75907.rs:15:16
10 LL | let Bar(x, y, Foo(z)) = make_bar();
11 | ^ ^^^^^^ private field
14 help: consider making the fields publicly accessible
16 LL | pub(crate) struct Bar(pub u8, pub u8, pub Foo);
19 error[E0532]: cannot match against a tuple struct which contains private fields
20 --> $DIR/issue-75907.rs:15:19
22 LL | let Bar(x, y, Foo(z)) = make_bar();
25 note: constructor is not visible here due to private fields
26 --> $DIR/issue-75907.rs:15:23
28 LL | let Bar(x, y, Foo(z)) = make_bar();
30 help: consider making the field publicly accessible
32 LL | pub(crate) struct Foo(pub u8);
35 error: aborting due to 2 previous errors
37 For more information about this error, try `rustc --explain E0532`.