]> git.lizzy.rs Git - rust.git/blob - tests/ui/typeck/issue-87872-missing-inaccessible-field-pattern.stderr
Auto merge of #107663 - matthiaskrgr:107423-point-at-EOF-code, r=compiler-errors
[rust.git] / tests / ui / typeck / issue-87872-missing-inaccessible-field-pattern.stderr
1 error[E0027]: pattern does not mention field `visible` and inaccessible fields
2   --> $DIR/issue-87872-missing-inaccessible-field-pattern.rs:9:9
3    |
4 LL |     let foo::Foo {} = foo::Foo::default();
5    |         ^^^^^^^^^^^ missing field `visible` and inaccessible fields
6    |
7 help: include the missing field in the pattern and ignore the inaccessible fields
8    |
9 LL |     let foo::Foo { visible, .. } = foo::Foo::default();
10    |                  ~~~~~~~~~~~~~~~
11 help: if you don't care about this missing field, you can explicitly ignore it
12    |
13 LL |     let foo::Foo { .. } = foo::Foo::default();
14    |                  ~~~~~~
15
16 error: aborting due to previous error
17
18 For more information about this error, try `rustc --explain E0027`.