summaryrefslogtreecommitdiffstats
path: root/src/test/ui/unop-move-semantics.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/unop-move-semantics.stderr')
-rw-r--r--src/test/ui/unop-move-semantics.stderr4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/ui/unop-move-semantics.stderr b/src/test/ui/unop-move-semantics.stderr
index 65d866c71..d52a92b88 100644
--- a/src/test/ui/unop-move-semantics.stderr
+++ b/src/test/ui/unop-move-semantics.stderr
@@ -14,6 +14,10 @@ note: calling this operator moves the left-hand side
|
LL | fn not(self) -> Self::Output;
| ^^^^
+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: Not<Output=T> + Clone + Copy>(x: T) {