about summary refs log tree commit diff
path: root/tests/ui/copy-a-resource.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/copy-a-resource.rs')
-rw-r--r--tests/ui/copy-a-resource.rs21
1 files changed, 0 insertions, 21 deletions
diff --git a/tests/ui/copy-a-resource.rs b/tests/ui/copy-a-resource.rs
deleted file mode 100644
index 55f2dd4ee6d..00000000000
--- a/tests/ui/copy-a-resource.rs
+++ /dev/null
@@ -1,21 +0,0 @@
-#[derive(Debug)]
-struct Foo {
-  i: isize,
-}
-
-impl Drop for Foo {
-    fn drop(&mut self) {}
-}
-
-fn foo(i:isize) -> Foo {
-    Foo {
-        i: i
-    }
-}
-
-fn main() {
-    let x = foo(10);
-    let _y = x.clone();
-    //~^ ERROR no method named `clone` found
-    println!("{:?}", x);
-}