Use repr(C) when depending on struct layout in ptr tests
This commit is contained in:
parent
7fe2c4b00d
commit
5dd5244423
1 changed files with 1 additions and 0 deletions
|
@ -19,6 +19,7 @@ fn test_const_from_raw_parts() {
|
|||
#[test]
|
||||
fn test() {
|
||||
unsafe {
|
||||
#[repr(C)]
|
||||
struct Pair {
|
||||
fst: isize,
|
||||
snd: isize,
|
||||
|
|
Loading…
Add table
Reference in a new issue