2020-09-10 11:32:45 +00:00
|
|
|
error: pattern requires `..` due to inaccessible fields
|
|
|
|
--> $DIR/issue-76077-1.rs:13:9
|
|
|
|
|
|
|
|
|
LL | let foo::Foo {} = foo::Foo::default();
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: ignore the inaccessible and unused fields
|
|
|
|
|
|
|
|
|
LL | let foo::Foo { .. } = foo::Foo::default();
|
2021-06-22 02:07:19 +00:00
|
|
|
| ~~~~~~
|
2020-09-10 11:32:45 +00:00
|
|
|
|
|
|
|
error: pattern requires `..` due to inaccessible fields
|
|
|
|
--> $DIR/issue-76077-1.rs:16:9
|
|
|
|
|
|
|
|
|
LL | let foo::Bar { visible } = foo::Bar::default();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: ignore the inaccessible and unused fields
|
|
|
|
|
|
|
|
|
LL | let foo::Bar { visible, .. } = foo::Bar::default();
|
2021-06-22 02:07:19 +00:00
|
|
|
| ++++
|
2020-09-10 11:32:45 +00:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|