about summary refs log tree commit diff
path: root/src/test/compile-fail/copy-a-resource.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/compile-fail/copy-a-resource.rs')
-rw-r--r--src/test/compile-fail/copy-a-resource.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/compile-fail/copy-a-resource.rs b/src/test/compile-fail/copy-a-resource.rs
index f709ddc0e0d..a90b04b79ad 100644
--- a/src/test/compile-fail/copy-a-resource.rs
+++ b/src/test/compile-fail/copy-a-resource.rs
@@ -24,7 +24,7 @@ fn foo(i:int) -> foo {
 
 fn main() {
     let x = foo(10);
-    let _y = copy x;
-    //~^ ERROR copying a value of non-copyable type `foo`
+    let _y = x.clone();
+    //~^ ERROR does not implement any method in scope
     error!(x);
 }