about summary refs log tree commit diff
path: root/tests/ui/destructuring-assignment/struct_destructure_fail.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/destructuring-assignment/struct_destructure_fail.stderr')
-rw-r--r--tests/ui/destructuring-assignment/struct_destructure_fail.stderr4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/ui/destructuring-assignment/struct_destructure_fail.stderr b/tests/ui/destructuring-assignment/struct_destructure_fail.stderr
index 57851ed417e..4c4f0663eeb 100644
--- a/tests/ui/destructuring-assignment/struct_destructure_fail.stderr
+++ b/tests/ui/destructuring-assignment/struct_destructure_fail.stderr
@@ -41,6 +41,10 @@ LL |     Struct { a, b } = Struct { a: 1, b: 2 };
    |               ~~~~~
 help: if you don't care about this missing field, you can explicitly ignore it
    |
+LL |     Struct { a, b: _ } = Struct { a: 1, b: 2 };
+   |               ~~~~~~~~
+help: or always ignore missing fields here
+   |
 LL |     Struct { a, .. } = Struct { a: 1, b: 2 };
    |               ~~~~~~