]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/struct-return.rs
cleanup: s/impl Copy/#[derive(Copy)]/g
[rust.git] / src / test / run-pass / struct-return.rs
index 63574316fe57398d5790d5e761178a1bdfe92e91..c8768731e2bdb5c19022a99f92bd134cb53d0ffe 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright 2012-2014 The Rust Project Developers. See the COPYRIGHT
+// Copyright 2012-2015 The Rust Project Developers. See the COPYRIGHT
 // file at the top-level directory of this distribution and at
 // http://rust-lang.org/COPYRIGHT.
 //
 //
 // ignore-lexer-test FIXME #15883
 
+#[derive(Copy)]
 pub struct Quad { a: u64, b: u64, c: u64, d: u64 }
+
+#[derive(Copy)]
 pub struct Floats { a: f64, b: u8, c: f64 }
 
 mod rustrt {
@@ -41,7 +44,7 @@ fn test1() {
     }
 }
 
-#[cfg(target_arch = "x86_64")]
+#[cfg(any(target_arch = "x86_64", target_arch = "aarch64"))]
 fn test2() {
     unsafe {
         let f = Floats { a: 1.234567890e-15_f64,