about summary refs log tree commit diff
path: root/src/test/compile-fail/borrowck-borrow-from-stack-variable.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/compile-fail/borrowck-borrow-from-stack-variable.rs')
-rw-r--r--src/test/compile-fail/borrowck-borrow-from-stack-variable.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/test/compile-fail/borrowck-borrow-from-stack-variable.rs b/src/test/compile-fail/borrowck-borrow-from-stack-variable.rs
index ae4c09c59d7..849c98e122e 100644
--- a/src/test/compile-fail/borrowck-borrow-from-stack-variable.rs
+++ b/src/test/compile-fail/borrowck-borrow-from-stack-variable.rs
@@ -8,20 +8,18 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#[derive(Copy)]
 struct Foo {
   bar1: Bar,
   bar2: Bar
 }
 
-impl Copy for Foo {}
-
+#[derive(Copy)]
 struct Bar {
   int1: isize,
   int2: isize,
 }
 
-impl Copy for Bar {}
-
 fn make_foo() -> Foo { panic!() }
 
 fn borrow_same_field_twice_mut_mut() {