blob: e0f8ce2c2489b42cc7cf932b6b2d2f7ac288dc60 [file] [log] [blame]
#![allow(missing_docs)]
use crate::void;
use core::marker::{PhantomData, PhantomPinned};
use core::mem;
// . size = 0
// . align = 1
// . ffi-safe
// . !Send
// . !Sync
// . !Unpin
#[repr(C, packed)]
pub struct Opaque {
_private: [*const void; 0],
_pinned: PhantomData<PhantomPinned>,
}
const_assert_eq!(0, mem::size_of::<Opaque>());
const_assert_eq!(1, mem::align_of::<Opaque>());