2 Checks for `MaybeUninit::uninit().assume_init()`.
5 For most types, this is undefined behavior.
8 For now, we accept empty tuples and tuples / arrays
9 of `MaybeUninit`. There may be other types that allow uninitialized
10 data, but those are not yet rigorously defined.
15 use std::mem::MaybeUninit;
17 let _: usize = unsafe { MaybeUninit::uninit().assume_init() };
20 Note that the following is OK:
23 use std::mem::MaybeUninit;
25 let _: [MaybeUninit<bool>; 5] = unsafe {
26 MaybeUninit::uninit().assume_init()