]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/typeclasses-eq-example-static.rs
cleanup: s/impl Copy/#[derive(Copy)]/g
[rust.git] / src / test / run-pass / typeclasses-eq-example-static.rs
index 20a28c5a9ead9233bec6aeef30b6329fef47ea0e..0ea7a1be432158c7313ab002e37b4cce70967094 100644 (file)
@@ -21,11 +21,9 @@ trait Equal {
     fn isEq(a: &Self, b: &Self) -> bool;
 }
 
-#[derive(Clone)]
+#[derive(Clone, Copy)]
 enum Color { cyan, magenta, yellow, black }
 
-impl Copy for Color {}
-
 impl Equal for Color {
     fn isEq(a: &Color, b: &Color) -> bool {
         match (*a, *b) {