2020-04-14 02:58:58 -05:00
|
|
|
// Validation makes this fail in the wrong place
|
|
|
|
// Make sure we find these even with many checks disabled.
|
2022-07-08 11:08:32 -05:00
|
|
|
//@compile-flags: -Zmiri-disable-alignment-check -Zmiri-disable-stacked-borrows -Zmiri-disable-validation
|
2020-04-14 02:58:58 -05:00
|
|
|
|
|
|
|
fn main() {
|
2022-08-01 20:34:28 -05:00
|
|
|
let i = unsafe { std::mem::MaybeUninit::<i32>::uninit().assume_init() }; //~ ERROR: uninitialized
|
|
|
|
let _x = i + 0;
|
2020-04-14 02:58:58 -05:00
|
|
|
}
|