summaryrefslogtreecommitdiffstats
path: root/src/test/ui/borrowck/borrowck-reinit.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/borrowck/borrowck-reinit.stderr')
-rw-r--r--src/test/ui/borrowck/borrowck-reinit.stderr5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/ui/borrowck/borrowck-reinit.stderr b/src/test/ui/borrowck/borrowck-reinit.stderr
index 22253cd96..f785900d5 100644
--- a/src/test/ui/borrowck/borrowck-reinit.stderr
+++ b/src/test/ui/borrowck/borrowck-reinit.stderr
@@ -8,6 +8,11 @@ LL | drop(x);
| - value moved here
LL | let _ = (1,x);
| ^ value used here after move
+ |
+help: consider cloning the value if the performance cost is acceptable
+ |
+LL | drop(x.clone());
+ | ++++++++
error: aborting due to previous error