diff options
Diffstat (limited to 'tests/ui/privacy/inaccessible-fields-pattern-matching-76077.stderr')
| -rw-r--r-- | tests/ui/privacy/inaccessible-fields-pattern-matching-76077.stderr | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/ui/privacy/inaccessible-fields-pattern-matching-76077.stderr b/tests/ui/privacy/inaccessible-fields-pattern-matching-76077.stderr new file mode 100644 index 00000000000..070fa1a53a5 --- /dev/null +++ b/tests/ui/privacy/inaccessible-fields-pattern-matching-76077.stderr @@ -0,0 +1,24 @@ +error: pattern requires `..` due to inaccessible fields + --> $DIR/inaccessible-fields-pattern-matching-76077.rs:14: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/inaccessible-fields-pattern-matching-76077.rs:17: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 + |
