fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
690 B24 linesraw
1error: pattern requires `..` due to inaccessible fields
2  --> $DIR/issue-76077-1.rs:13:9
3   |
4LL |     let foo::Foo {} = foo::Foo::default();
5   |         ^^^^^^^^^^^
6   |
7help: ignore the inaccessible and unused fields
8   |
9LL |     let foo::Foo { .. } = foo::Foo::default();
10   |                  ~~~~~~
11
12error: pattern requires `..` due to inaccessible fields
13  --> $DIR/issue-76077-1.rs:16:9
14   |
15LL |     let foo::Bar { visible } = foo::Bar::default();
16   |         ^^^^^^^^^^^^^^^^^^^^
17   |
18help: ignore the inaccessible and unused fields
19   |
20LL |     let foo::Bar { visible, .. } = foo::Bar::default();
21   |                           ++++
22
23error: aborting due to 2 previous errors
24