rust/tests/run-pass/move-undef-primval.rs
2016-12-21 17:26:52 -08:00

13 lines
172 B
Rust

struct Foo {
_inner: i32,
}
fn main() {
unsafe {
let foo = Foo {
_inner: std::mem::uninitialized(),
};
let _bar = foo;
}
}