16 lines
241 B
Rust
16 lines
241 B
Rust
// compile-flags: -Zmiri-allow-uninit-numbers
|
|
#![allow(deprecated)]
|
|
|
|
struct Foo {
|
|
_inner: i32,
|
|
}
|
|
|
|
fn main() {
|
|
unsafe {
|
|
let foo = Foo {
|
|
_inner: std::mem::uninitialized(),
|
|
};
|
|
let _bar = foo;
|
|
}
|
|
}
|