about summary refs log tree commit diff
path: root/src/test/run-pass/expr-match-struct.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/run-pass/expr-match-struct.rs')
-rw-r--r--src/test/run-pass/expr-match-struct.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/run-pass/expr-match-struct.rs b/src/test/run-pass/expr-match-struct.rs
index ea96005dc60..83101a3d2cc 100644
--- a/src/test/run-pass/expr-match-struct.rs
+++ b/src/test/run-pass/expr-match-struct.rs
@@ -15,6 +15,8 @@
 // Tests for match as expressions resulting in struct types
 struct R { i: int }
 
+impl Copy for R {}
+
 fn test_rec() {
     let rs = match true { true => R {i: 100}, _ => panic!() };
     assert_eq!(rs.i, 100);
@@ -23,6 +25,8 @@ fn test_rec() {
 #[deriving(Show)]
 enum mood { happy, sad, }
 
+impl Copy for mood {}
+
 impl PartialEq for mood {
     fn eq(&self, other: &mood) -> bool {
         ((*self) as uint) == ((*other) as uint)