diff --git a/src/tools/miri/tests/fail/uninit/padding-wide-ptr.rs b/src/tools/miri/tests/fail/uninit/padding-wide-ptr.rs index 4e363dbf81e08..725d473a5d36f 100644 --- a/src/tools/miri/tests/fail/uninit/padding-wide-ptr.rs +++ b/src/tools/miri/tests/fail/uninit/padding-wide-ptr.rs @@ -1,7 +1,13 @@ use std::mem; -// If this is `None`, the metadata becomes padding. -type T = Option<&'static str>; +#[repr(C)] +struct RefAndLen { + ptr: &'static u8, + len: usize, +} + +// If this is `None`, the len becomes padding. +type T = Option; fn main() { unsafe {