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