diff options
| author | Michael Goulet <michael@errs.io> | 2025-02-13 03:07:18 +0000 |
|---|---|---|
| committer | Jubilee Young <workingjubilee@gmail.com> | 2025-02-14 00:27:17 -0800 |
| commit | f6406dfd4efceb6f713e503aecda587304135ed9 (patch) | |
| tree | a31b524ba2341d65c7985016a94db014d7459b52 /tests/ui/error-codes | |
| parent | b480a9214a7037813d29bc04d9e9dbe92ce10cf3 (diff) | |
| download | rust-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.stderr | 15 |
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 |
