clarify a comment in the test
This commit is contained in:
parent
729f4cd9ae
commit
bfe593e03a
1 changed files with 3 additions and 1 deletions
|
@ -161,7 +161,9 @@ fn main() {
|
|||
let _val = mem::zeroed::<MaybeUninit<NonNull<u32>>>();
|
||||
let _val = mem::uninitialized::<MaybeUninit<bool>>();
|
||||
|
||||
// We don't panic for these just to be conservative. They are UB as of now (2019-11-09).
|
||||
// These are UB because they have not been officially blessed, but we await the resolution
|
||||
// of <https://github.com/rust-lang/unsafe-code-guidelines/issues/71> before doing
|
||||
// anything about that.
|
||||
let _val = mem::uninitialized::<i32>();
|
||||
let _val = mem::uninitialized::<*const ()>();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue