rust/tests/fail/uninit_raw_ptr.rs
2022-06-01 10:53:38 -04:00

5 lines
187 B
Rust

fn main() {
let _val = unsafe { std::mem::MaybeUninit::<*const u8>::uninit().assume_init() };
//~^ ERROR type validation failed at .value: encountered uninitialized raw pointer
}