blob: b59971b3498027cdfef01442e9e2d4cf8d6ff98f [file] [log] [blame]
// Test the uninit() construct returning various empty types.
// pretty-expanded FIXME #23616
use std::mem;
#[derive(Clone)]
struct Foo;
pub fn main() {
unsafe {
let _x: Foo = mem::uninitialized();
let _x: [Foo; 2] = mem::uninitialized();
}
}