]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/issue-2633.rs
cleanup: s/impl Copy/#[derive(Copy)]/g
[rust.git] / src / test / run-pass / issue-2633.rs
index bc014f699c731f15965679bdc2ae895e58a07d98..de99141c80311381a47ca48841732d40c6e26142 100644 (file)
@@ -8,12 +8,11 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#[derive(Copy)]
 struct cat {
     meow: extern "Rust" fn(),
 }
 
-impl Copy for cat {}
-
 fn meow() {
     println!("meow")
 }
@@ -24,10 +23,9 @@ fn cat() -> cat {
     }
 }
 
+#[derive(Copy)]
 struct KittyInfo {kitty: cat}
 
-impl Copy for KittyInfo {}
-
 // Code compiles and runs successfully if we add a + before the first arg
 fn nyan(kitty: cat, _kitty_info: KittyInfo) {
     (kitty.meow)();