summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-76077-1.stderr
blob: 8e77662b4ba3f39a4b8684f93b708ce7aadc7d54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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();
   |                  ~~~~~~

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();
   |                           ++++

error: aborting due to 2 previous errors