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