about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--library/core/tests/ptr.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/core/tests/ptr.rs b/library/core/tests/ptr.rs
index 40b2b49bdbd..3e2956eac87 100644
--- a/library/core/tests/ptr.rs
+++ b/library/core/tests/ptr.rs
@@ -19,6 +19,7 @@ fn test_const_from_raw_parts() {
 #[test]
 fn test() {
     unsafe {
+        #[repr(C)]
         struct Pair {
             fst: isize,
             snd: isize,