]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/dst-struct.rs
cleanup: s/impl Copy/#[derive(Copy)]/g
[rust.git] / src / test / run-pass / dst-struct.rs
index b2092e745a116c5f9c30556ce2642d7b7cd28194..fa2af29431c308262352bdd6bec362dd4077cb04 100644 (file)
@@ -49,11 +49,9 @@ fn foo3(x: &Fat<Fat<[int]>>) {
 }
 
 
-#[derive(PartialEq,Eq)]
+#[derive(Copy, PartialEq, Eq)]
 struct Bar;
 
-impl Copy for Bar {}
-
 trait ToBar {
     fn to_bar(&self) -> Bar;
 }