summaryrefslogtreecommitdiffstats
path: root/src/test/ui/binop/binop-move-semantics.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/binop/binop-move-semantics.stderr')
-rw-r--r--src/test/ui/binop/binop-move-semantics.stderr4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/ui/binop/binop-move-semantics.stderr b/src/test/ui/binop/binop-move-semantics.stderr
index 695b01d5e..994eaf9d8 100644
--- a/src/test/ui/binop/binop-move-semantics.stderr
+++ b/src/test/ui/binop/binop-move-semantics.stderr
@@ -32,6 +32,10 @@ LL | +
LL | x.clone();
| ^^^^^^^^^ value borrowed here after move
|
+help: consider cloning the value if the performance cost is acceptable
+ |
+LL | x.clone()
+ | ++++++++
help: consider further restricting this bound
|
LL | fn move_then_borrow<T: Add<Output=()> + Clone + Copy>(x: T) {