1 error[E0027]: pattern does not mention field `visible` and inaccessible fields
2 --> $DIR/issue-87872-missing-inaccessible-field-pattern.rs:9:9
4 LL | let foo::Foo {} = foo::Foo::default();
5 | ^^^^^^^^^^^ missing field `visible` and inaccessible fields
7 help: include the missing field in the pattern and ignore the inaccessible fields
9 LL | let foo::Foo { visible, .. } = foo::Foo::default();
11 help: if you don't care about this missing field, you can explicitly ignore it
13 LL | let foo::Foo { .. } = foo::Foo::default();
16 error: aborting due to previous error
18 For more information about this error, try `rustc --explain E0027`.