2022-07-08 11:08:32 -05:00
|
|
|
//@compile-flags: -Zmiri-allow-uninit-numbers
|
2019-07-06 02:33:22 -05:00
|
|
|
#![allow(deprecated)]
|
|
|
|
|
2016-12-21 19:26:52 -06:00
|
|
|
struct Foo {
|
|
|
|
_inner: i32,
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
unsafe {
|
2022-06-20 18:00:37 -05:00
|
|
|
let foo = Foo { _inner: std::mem::uninitialized() };
|
2016-12-21 19:26:52 -06:00
|
|
|
let _bar = foo;
|
|
|
|
}
|
|
|
|
}
|