about summary refs log tree commit diff
path: root/tests/ui/rfcs/rfc-2008-non-exhaustive/variant.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/rfcs/rfc-2008-non-exhaustive/variant.stderr')
-rw-r--r--tests/ui/rfcs/rfc-2008-non-exhaustive/variant.stderr10
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/ui/rfcs/rfc-2008-non-exhaustive/variant.stderr b/tests/ui/rfcs/rfc-2008-non-exhaustive/variant.stderr
index 4083f57a9cd..4cabd5a8140 100644
--- a/tests/ui/rfcs/rfc-2008-non-exhaustive/variant.stderr
+++ b/tests/ui/rfcs/rfc-2008-non-exhaustive/variant.stderr
@@ -82,8 +82,9 @@ LL |         NonExhaustiveVariants::Struct { field } => ""
    |
 help: add `..` at the end of the field list to ignore all other fields
    |
-LL |         NonExhaustiveVariants::Struct { field , .. } => ""
-   |                                               ~~~~~~
+LL -         NonExhaustiveVariants::Struct { field } => ""
+LL +         NonExhaustiveVariants::Struct { field , .. } => ""
+   |
 
 error[E0638]: `..` required with variant marked as non-exhaustive
   --> $DIR/variant.rs:30:12
@@ -93,8 +94,9 @@ LL |     if let NonExhaustiveVariants::Struct { field } = variant_struct {
    |
 help: add `..` at the end of the field list to ignore all other fields
    |
-LL |     if let NonExhaustiveVariants::Struct { field , .. } = variant_struct {
-   |                                                  ~~~~~~
+LL -     if let NonExhaustiveVariants::Struct { field } = variant_struct {
+LL +     if let NonExhaustiveVariants::Struct { field , .. } = variant_struct {
+   |
 
 error: aborting due to 8 previous errors