]> 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 a9ebfbcbf3322855036626d69e1da7f883b4c99a..de99141c80311381a47ca48841732d40c6e26142 100644 (file)
@@ -8,6 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#[derive(Copy)]
 struct cat {
     meow: extern "Rust" fn(),
 }
@@ -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