We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8bac26b commit c4f067eCopy full SHA for c4f067e
tests/compile-fail/uninit_raw_ptr.rs
@@ -0,0 +1,4 @@
1
+fn main() {
2
+ let _val = unsafe { std::mem::MaybeUninit::<*const u8>::uninit().assume_init() };
3
+ //~^ ERROR type validation failed at .value: encountered uninitialized raw pointer
4
+}
0 commit comments