}
// This is the type with the questionable alignment
-#[derive(Show)]
+#[derive(Debug)]
struct Inner {
c64: u64
}
// This is the type that contains the type with the
// questionable alignment, for testing
-#[derive(Show)]
+#[derive(Debug)]
struct Outer {
c8: u8,
t: Inner
// because `Inner`s alignment was 4.
assert_eq!(mem::size_of::<Outer>(), m::m::size());
- assert_eq!(y, "Outer { c8: 22u8, t: Inner { c64: 44u64 } }".to_string());
+ assert_eq!(y, "Outer { c8: 22, t: Inner { c64: 44 } }".to_string());
}
}