rust/tests/run-pass/move-undef-primval.rs

13 lines
172 B
Rust
Raw Normal View History

2016-12-21 19:26:52 -06:00
struct Foo {
_inner: i32,
}
fn main() {
unsafe {
let foo = Foo {
_inner: std::mem::uninitialized(),
};
let _bar = foo;
}
}