2020-10-26 09:36:48 -05:00
|
|
|
error[E0532]: cannot match against a tuple struct which contains private fields
|
2020-09-08 17:14:09 -05:00
|
|
|
--> $DIR/issue-75907_b.rs:9:9
|
|
|
|
|
|
|
|
|
LL | let Bar(x, y, z) = make_bar();
|
2021-05-08 03:07:27 -05:00
|
|
|
| ^^^
|
|
|
|
|
|
|
|
|
note: constructor is not visible here due to private fields
|
|
|
|
--> $DIR/issue-75907_b.rs:9:16
|
|
|
|
|
|
|
|
|
LL | let Bar(x, y, z) = make_bar();
|
|
|
|
| ^ ^ private field
|
|
|
|
| |
|
|
|
|
| private field
|
|
|
|
|
|
|
|
error[E0532]: cannot match against a tuple struct which contains private fields
|
|
|
|
--> $DIR/issue-75907_b.rs:12:9
|
|
|
|
|
|
|
|
|
LL | let Foo(x, y, z) = Foo::new();
|
|
|
|
| ^^^
|
|
|
|
|
|
|
|
|
note: constructor is not visible here due to private fields
|
|
|
|
--> $DIR/issue-75907_b.rs:12:13
|
|
|
|
|
|
|
|
|
LL | let Foo(x, y, z) = Foo::new();
|
|
|
|
| ^ ^ private field
|
|
|
|
| |
|
|
|
|
| private field
|
2020-09-08 17:14:09 -05:00
|
|
|
|
2021-05-08 03:07:27 -05:00
|
|
|
error: aborting due to 2 previous errors
|
2020-09-08 17:14:09 -05:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0532`.
|