rust/tests/run-pass/move-undef-primval.rs
2019-07-06 09:33:22 +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;
}
}