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/let-else | |
| parent | b480a9214a7037813d29bc04d9e9dbe92ce10cf3 (diff) | |
| download | rust-f6406dfd4efceb6f713e503aecda587304135ed9.tar.gz rust-f6406dfd4efceb6f713e503aecda587304135ed9.zip | |
Consider add-prefix replacements too
Diffstat (limited to 'tests/ui/let-else')
| -rw-r--r-- | tests/ui/let-else/let-else-deref-coercion.stderr | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/tests/ui/let-else/let-else-deref-coercion.stderr b/tests/ui/let-else/let-else-deref-coercion.stderr index 07347af76e4..da8b1f4c48e 100644 --- a/tests/ui/let-else/let-else-deref-coercion.stderr +++ b/tests/ui/let-else/let-else-deref-coercion.stderr @@ -8,9 +8,8 @@ LL | let Bar::Present(z) = self else { | help: consider dereferencing to access the inner value using the Deref trait | -LL - let Bar::Present(z) = self else { -LL + let Bar::Present(z) = &**self else { - | +LL | let Bar::Present(z) = &**self else { + | ~~~~~~~ error[E0308]: mismatched types --> $DIR/let-else-deref-coercion.rs:68:13 @@ -22,9 +21,8 @@ LL | let Bar(z) = x; | help: consider dereferencing to access the inner value using the Deref trait | -LL - let Bar(z) = x; -LL + let Bar(z) = &**x; - | +LL | let Bar(z) = &**x; + | ~~~~ error: aborting due to 2 previous errors |
