diff --git a/src/maybe_uninit_copy.rs b/src/maybe_uninit_copy.rs index dd08e57..1a1c9ec 100644 --- a/src/maybe_uninit_copy.rs +++ b/src/maybe_uninit_copy.rs @@ -2,6 +2,7 @@ use array::Array; #[derive(Copy, Clone)] +#[repr(C)] // for cast from self ptr to value pub union MaybeUninitCopy where T: Copy {