rust/tests/run-pass/move-uninit-primval.rs
2020-04-27 12:32:03 +02:00

15 lines
195 B
Rust

#![allow(deprecated)]
struct Foo {
_inner: i32,
}
fn main() {
unsafe {
let foo = Foo {
_inner: std::mem::uninitialized(),
};
let _bar = foo;
}
}