summaryrefslogtreecommitdiffstats
path: root/tests/ui/moves/suggest-clone.fixed
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/ui/moves/suggest-clone.fixed2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ui/moves/suggest-clone.fixed b/tests/ui/moves/suggest-clone.fixed
index 204bfdb10..0c4a94d77 100644
--- a/tests/ui/moves/suggest-clone.fixed
+++ b/tests/ui/moves/suggest-clone.fixed
@@ -7,5 +7,5 @@ impl Foo {
}
fn main() {
let foo = &Foo;
- foo.clone().foo(); //~ ERROR cannot move out
+ <Foo as Clone>::clone(&foo).foo(); //~ ERROR cannot move out
}