diff options
| author | Ben Kimock <kimockb@gmail.com> | 2022-06-07 19:24:09 -0400 |
|---|---|---|
| committer | Ben Kimock <kimockb@gmail.com> | 2022-06-07 19:24:09 -0400 |
| commit | 5dd5244423d36972ee95a236eea650ba3d74843a (patch) | |
| tree | 458e82eabcb2ee5c7fe4e4f4b482178ed96e33be | |
| parent | 7fe2c4b00dfbc33643e1af4b293eb057306a8339 (diff) | |
| download | rust-5dd5244423d36972ee95a236eea650ba3d74843a.tar.gz rust-5dd5244423d36972ee95a236eea650ba3d74843a.zip | |
Use repr(C) when depending on struct layout in ptr tests
| -rw-r--r-- | library/core/tests/ptr.rs | 1 |
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, |
