rust/tests/fail/validity/uninit_raw_ptr.rs

5 lines
130 B
Rust

fn main() {
let _val = unsafe { std::mem::MaybeUninit::<*const u8>::uninit().assume_init() };
//~^ ERROR: uninitialized
}