We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3be6b4 commit 1cca2acCopy full SHA for 1cca2ac
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