Skip to content

Commit

Permalink
Update src/test/run-pass/union/union-nodrop.rs
Browse files Browse the repository at this point in the history
Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>
  • Loading branch information
2 people authored and oli-obk committed Oct 11, 2019
1 parent 0301eaf commit bf25a9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/ui/union/union-nodrop.rs
Expand Up @@ -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;

Expand Down

0 comments on commit bf25a9c

Please sign in to comment.