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