Update src/test/run-pass/union/union-nodrop.rs
Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>
This commit is contained in:
parent
0301eafd32
commit
bf25a9c82f
1 changed files with 1 additions and 1 deletions
|
|
@ -13,7 +13,7 @@ impl Drop for NeedDrop {
|
|||
fn drop(&mut self) {}
|
||||
}
|
||||
|
||||
// Constant expressios allow `NoDrop` to go out of scope,
|
||||
// Constant expressions allow `NoDrop` to go out of scope,
|
||||
// unlike a value of the interior type implementing `Drop`.
|
||||
static X: () = (NoDrop { inner: ManuallyDrop::new(NeedDrop) }, ()).1;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue