Use repr(C) when depending on struct layout in ptr tests

This commit is contained in:
Ben Kimock 2022-06-07 19:24:09 -04:00
parent 7fe2c4b00d
commit 5dd5244423

View file

@ -19,6 +19,7 @@ fn test_const_from_raw_parts() {
#[test]
fn test() {
unsafe {
#[repr(C)]
struct Pair {
fst: isize,
snd: isize,