about summary refs log tree commit diff
path: root/tests/ui/try-block
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-07-26 14:32:19 -0400
committerMichael Goulet <michael@errs.io>2024-07-26 14:41:56 -0400
commit91acacf85b9f81aeb41901f8918128bfe02946c8 (patch)
tree24f38bf31ef9f15930e66da7d4e187a73d7ed932 /tests/ui/try-block
parente7eae5370e304fb1534c1964852a6c127f1f09f8 (diff)
downloadrust-91acacf85b9f81aeb41901f8918128bfe02946c8.tar.gz
rust-91acacf85b9f81aeb41901f8918128bfe02946c8.zip
Peel off explicit (or implicit) deref before suggesting clone on move error in borrowck
Diffstat (limited to 'tests/ui/try-block')
-rw-r--r--tests/ui/try-block/try-block-bad-lifetime.stderr5
1 files changed, 0 insertions, 5 deletions
diff --git a/tests/ui/try-block/try-block-bad-lifetime.stderr b/tests/ui/try-block/try-block-bad-lifetime.stderr
index 6f693295357..28941cb0a9e 100644
--- a/tests/ui/try-block/try-block-bad-lifetime.stderr
+++ b/tests/ui/try-block/try-block-bad-lifetime.stderr
@@ -34,11 +34,6 @@ LL |             Err(k) ?;
 ...
 LL |         ::std::mem::drop(k);
    |                          ^ value used here after move
-   |
-help: consider cloning the value if the performance cost is acceptable
-   |
-LL |             Err(k.clone()) ?;
-   |                  ++++++++
 
 error[E0506]: cannot assign to `i` because it is borrowed
   --> $DIR/try-block-bad-lifetime.rs:32:9