2021-10-24 15:43:47 -05:00
|
|
|
// This test is adapted from https://github.com/rust-lang/miri/issues/1340#issue-600900312.
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let _val = unsafe { std::mem::MaybeUninit::<i32>::uninit().assume_init() };
|
2022-06-29 20:31:27 -05:00
|
|
|
//~^ ERROR constructing invalid value at .value: encountered uninitialized bytes, but expected initialized bytes
|
2021-10-24 15:43:47 -05:00
|
|
|
}
|