]> 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 e905c895c3510d7bc6dab93dd46b9dfe05d853e0..de99141c80311381a47ca48841732d40c6e26142 100644 (file)
@@ -8,12 +8,13 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#[derive(Copy)]
 struct cat {
     meow: extern "Rust" fn(),
 }
 
 fn meow() {
-    error2!("meow")
+    println!("meow")
 }
 
 fn cat() -> cat {
@@ -22,6 +23,7 @@ fn cat() -> cat {
     }
 }
 
+#[derive(Copy)]
 struct KittyInfo {kitty: cat}
 
 // Code compiles and runs successfully if we add a + before the first arg