Skip to content

Commit aec5330

Browse files
committed
Fix ui/run-pass/union/union-nodrop.rs test
1 parent 2c3c882 commit aec5330

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ impl<T> Drop for ActuallyDrop<T> {
5757
}
5858

5959
fn main() {
60-
unsafe {
6160
// NoDrop should not make needs_drop true
6261
assert!(!needs_drop::<Foo>());
6362
assert!(!needs_drop::<NoDrop<u8>>());
@@ -68,4 +67,3 @@ fn main() {
6867
assert!(needs_drop::<ActuallyDrop<u8>>());
6968
assert!(needs_drop::<ActuallyDrop<Box<u8>>>());
7069
}
71-
}

0 commit comments

Comments
 (0)