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.rs4
1 files changed, 4 insertions, 0 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 3a85b45ad12..d252d442297 100644
--- a/src/test/compile-fail/borrowck-borrow-from-stack-variable.rs
+++ b/src/test/compile-fail/borrowck-borrow-from-stack-variable.rs
@@ -13,11 +13,15 @@ struct Foo {
   bar2: Bar
 }
 
+impl Copy for Foo {}
+
 struct Bar {
   int1: int,
   int2: int,
 }
 
+impl Copy for Bar {}
+
 fn make_foo() -> Foo { panic!() }
 
 fn borrow_same_field_twice_mut_mut() {