mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
tests: issue-69488.rs => load-preserves-partial-init-issue-69488.rs
This commit is contained in:
parent
a3f76a26e0
commit
bcf8cf2943
@ -795,7 +795,6 @@ ui/consts/issue-68684.rs
|
||||
ui/consts/issue-69191-ice-on-uninhabited-enum-field.rs
|
||||
ui/consts/issue-69310-array-size-lit-wrong-ty.rs
|
||||
ui/consts/issue-69312.rs
|
||||
ui/consts/issue-69488.rs
|
||||
ui/consts/issue-69532.rs
|
||||
ui/consts/issue-6991.rs
|
||||
ui/consts/issue-70773-mir-typeck-lt-norm.rs
|
||||
|
@ -1,6 +1,9 @@
|
||||
//@ run-pass
|
||||
|
||||
#![feature(const_ptr_write)]
|
||||
// issue: https://github.com/rust-lang/rust/issues/69488
|
||||
// Loads of partially-initialized data could produce completely-uninitialized results.
|
||||
// Test to make sure that we no longer do such a "deinitializing" load.
|
||||
|
||||
// Or, equivalently: `MaybeUninit`.
|
||||
pub union BagOfBits<T: Copy> {
|
Loading…
Reference in New Issue
Block a user