tests: issue-69488.rs => load-preserves-partial-init-issue-69488.rs

This commit is contained in:
Jubilee Young 2024-09-26 10:34:08 -07:00
parent a3f76a26e0
commit bcf8cf2943
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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> {