Update src/test/run-pass/union/union-nodrop.rs

Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>
This commit is contained in:
Simon Sapin 2019-07-04 15:54:16 +02:00 committed by Oliver Scherer
parent 0301eafd32
commit bf25a9c82f

View file

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