Add test for uninit raw ptrs

This commit is contained in:
Noah Lev 2021-10-29 16:40:20 -07:00
parent b3be6b44b6
commit 1cca2acf95

View File

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