15 lines
202 B
Rust
15 lines
202 B
Rust
#![allow(deprecated)]
|
|
|
|
use std::mem;
|
|
|
|
struct Foo {
|
|
_inner: mem::MaybeUninit<i32>,
|
|
}
|
|
|
|
fn main() {
|
|
unsafe {
|
|
let foo = Foo { _inner: mem::uninitialized() };
|
|
let _bar = foo;
|
|
}
|
|
}
|