]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/class-impl-very-parameterized-trait.rs
cleanup: s/impl Copy/#[derive(Copy)]/g
[rust.git] / src / test / run-pass / class-impl-very-parameterized-trait.rs
index 629cf7c4ef77b344ee36e56dcee19ae32267b136..993f27d061d20f9c000517591305e8a2940f4728 100644 (file)
 
 use std::cmp;
 
-#[derive(Show)]
+#[derive(Copy, Show)]
 enum cat_type { tuxedo, tabby, tortoiseshell }
 
-impl Copy for cat_type {}
-
 impl cmp::PartialEq for cat_type {
     fn eq(&self, other: &cat_type) -> bool {
         ((*self) as uint) == ((*other) as uint)