about summary refs log tree commit diff
path: root/tests/ui/error-codes
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2025-02-13 03:07:18 +0000
committerJubilee Young <workingjubilee@gmail.com>2025-02-14 00:27:17 -0800
commitf6406dfd4efceb6f713e503aecda587304135ed9 (patch)
treea31b524ba2341d65c7985016a94db014d7459b52 /tests/ui/error-codes
parentb480a9214a7037813d29bc04d9e9dbe92ce10cf3 (diff)
downloadrust-f6406dfd4efceb6f713e503aecda587304135ed9.tar.gz
rust-f6406dfd4efceb6f713e503aecda587304135ed9.zip
Consider add-prefix replacements too
Diffstat (limited to 'tests/ui/error-codes')
-rw-r--r--tests/ui/error-codes/E0027.stderr15
1 files changed, 6 insertions, 9 deletions
diff --git a/tests/ui/error-codes/E0027.stderr b/tests/ui/error-codes/E0027.stderr
index 701e636dc58..4a102629ad5 100644
--- a/tests/ui/error-codes/E0027.stderr
+++ b/tests/ui/error-codes/E0027.stderr
@@ -6,19 +6,16 @@ LL |         Dog { age: x } => {}
    |
 help: include the missing field in the pattern
    |
-LL -         Dog { age: x } => {}
-LL +         Dog { age: x, name } => {}
-   |
+LL |         Dog { age: x, name } => {}
+   |                     ~~~~~~~~
 help: if you don't care about this missing field, you can explicitly ignore it
    |
-LL -         Dog { age: x } => {}
-LL +         Dog { age: x, name: _ } => {}
-   |
+LL |         Dog { age: x, name: _ } => {}
+   |                     ~~~~~~~~~~~
 help: or always ignore missing fields here
    |
-LL -         Dog { age: x } => {}
-LL +         Dog { age: x, .. } => {}
-   |
+LL |         Dog { age: x, .. } => {}
+   |                     ~~~~~~
 
 error[E0027]: pattern does not mention field `age`
   --> $DIR/E0027.rs:15:9