]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/extern-pass-TwoU8s.rs
cleanup: s/impl Copy/#[derive(Copy)]/g
[rust.git] / src / test / run-pass / extern-pass-TwoU8s.rs
index 42a1ce788707ebb392fdfce8c13f6cbc121feba0..d5c727be4bc7a3d9f0dcd60796a5aa725e1d44c9 100644 (file)
 // Test a foreign function that accepts and returns a struct
 // by value.
 
-#[derive(PartialEq, Show)]
+#[derive(Copy, PartialEq, Show)]
 pub struct TwoU8s {
     one: u8, two: u8
 }
 
-impl Copy for TwoU8s {}
-
 #[link(name = "rust_test_helpers")]
 extern {
     pub fn rust_dbg_extern_identity_TwoU8s(v: TwoU8s) -> TwoU8s;