File tree Expand file tree Collapse file tree 1 file changed +9
-11
lines changed
src/test/ui/run-pass/union Expand file tree Collapse file tree 1 file changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -57,15 +57,13 @@ impl<T> Drop for ActuallyDrop<T> {
5757}
5858
5959fn main ( ) {
60- unsafe {
61- // NoDrop should not make needs_drop true
62- assert ! ( !needs_drop:: <Foo >( ) ) ;
63- assert ! ( !needs_drop:: <NoDrop <u8 >>( ) ) ;
64- assert ! ( !needs_drop:: <NoDrop <Box <u8 >>>( ) ) ;
65- // presence of other drop types should still work
66- assert ! ( needs_drop:: <Baz >( ) ) ;
67- // drop impl on union itself should work
68- assert ! ( needs_drop:: <ActuallyDrop <u8 >>( ) ) ;
69- assert ! ( needs_drop:: <ActuallyDrop <Box <u8 >>>( ) ) ;
70- }
60+ // NoDrop should not make needs_drop true
61+ assert ! ( !needs_drop:: <Foo >( ) ) ;
62+ assert ! ( !needs_drop:: <NoDrop <u8 >>( ) ) ;
63+ assert ! ( !needs_drop:: <NoDrop <Box <u8 >>>( ) ) ;
64+ // presence of other drop types should still work
65+ assert ! ( needs_drop:: <Baz >( ) ) ;
66+ // drop impl on union itself should work
67+ assert ! ( needs_drop:: <ActuallyDrop <u8 >>( ) ) ;
68+ assert ! ( needs_drop:: <ActuallyDrop <Box <u8 >>>( ) ) ;
7169}
You can’t perform that action at this time.
0 commit comments