about summary refs log tree commit diff
path: root/tests/ui/structs/default-field-values/non-exhaustive-ctor.enabled.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/structs/default-field-values/non-exhaustive-ctor.enabled.stderr')
-rw-r--r--tests/ui/structs/default-field-values/non-exhaustive-ctor.enabled.stderr5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/ui/structs/default-field-values/non-exhaustive-ctor.enabled.stderr b/tests/ui/structs/default-field-values/non-exhaustive-ctor.enabled.stderr
index 6d035ebdc47..d9b8e76aa0d 100644
--- a/tests/ui/structs/default-field-values/non-exhaustive-ctor.enabled.stderr
+++ b/tests/ui/structs/default-field-values/non-exhaustive-ctor.enabled.stderr
@@ -6,8 +6,9 @@ LL |     let _ = S { };
    |
 help: all remaining fields have default values, you can use those values with `..`
    |
-LL |     let _ = S { .. };
-   |               ~~~~~~
+LL -     let _ = S { };
+LL +     let _ = S { .. };
+   |
 
 error[E0063]: missing fields `field1` and `field2` in initializer of `S`
   --> $DIR/non-exhaustive-ctor.rs:26:13