X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Ftest%2Frun-pass%2Fexpr-match-struct.rs;h=1b5a33dff3da0ada61007f50e2d2659ef4bc64cc;hb=bff462302b3e0a8f68c14cad2806c7ff5005364e;hp=ea96005dc602e8434a442571c53e2ce2178d392d;hpb=789777babda61ffbf257c85f58084c94c9f06866;p=rust.git diff --git a/src/test/run-pass/expr-match-struct.rs b/src/test/run-pass/expr-match-struct.rs index ea96005dc60..1b5a33dff3d 100644 --- a/src/test/run-pass/expr-match-struct.rs +++ b/src/test/run-pass/expr-match-struct.rs @@ -13,6 +13,7 @@ // Tests for match as expressions resulting in struct types +#[derive(Copy)] struct R { i: int } fn test_rec() { @@ -20,7 +21,7 @@ fn test_rec() { assert_eq!(rs.i, 100); } -#[deriving(Show)] +#[derive(Copy, Show)] enum mood { happy, sad, } impl PartialEq for mood {