fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0532]: cannot match against a tuple struct which contains private fields 2 --> $DIR/issue-75907_b.rs:9:9 3 | 4LL | let Bar(x, y, z) = make_bar(); 5 | ^^^ 6 | 7note: constructor is not visible here due to private fields 8 --> $DIR/issue-75907_b.rs:9:16 9 | 10LL | let Bar(x, y, z) = make_bar(); 11 | ^ ^ private field 12 | | 13 | private field 14 15error[E0532]: cannot match against a tuple struct which contains private fields 16 --> $DIR/issue-75907_b.rs:12:9 17 | 18LL | let Foo(x, y, z) = Foo::new(); 19 | ^^^ 20 | 21note: constructor is not visible here due to private fields 22 --> $DIR/issue-75907_b.rs:12:13 23 | 24LL | let Foo(x, y, z) = Foo::new(); 25 | ^ ^ private field 26 | | 27 | private field 28 29error: aborting due to 2 previous errors 30 31For more information about this error, try `rustc --explain E0532`.