2 // Test the uninit() construct returning various empty types.
4 // pretty-expanded FIXME #23616
6 use std::mem::MaybeUninit;
13 // `Foo` and `[Foo; 2]` are both zero sized and inhabited, so this is safe.
14 let _x: Foo = MaybeUninit::uninit().assume_init();
15 let _x: [Foo; 2] = MaybeUninit::uninit().assume_init();
16 let _x: Foo = std::mem::uninitialized();
17 let _x: [Foo; 2] = std::mem::uninitialized();