Allow unions_with_drop_fields for unions with members with destructors
(or generics that *might* have dtors)
This commit is contained in:
parent
84a02e17da
commit
8e72955526
5 changed files with 5 additions and 0 deletions
|
|
@ -9,6 +9,7 @@
|
|||
// except according to those terms.
|
||||
|
||||
// run-pass
|
||||
#![allow(unions_with_drop_fields)]
|
||||
|
||||
// Some traits can be derived for unions.
|
||||
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@
|
|||
// except according to those terms.
|
||||
|
||||
// run-pass
|
||||
#![allow(unions_with_drop_fields)]
|
||||
|
||||
// Drop works for union itself.
|
||||
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@
|
|||
// except according to those terms.
|
||||
|
||||
// run-pass
|
||||
#![allow(unions_with_drop_fields)]
|
||||
|
||||
// Drop works for union itself.
|
||||
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@
|
|||
// except according to those terms.
|
||||
|
||||
// run-pass
|
||||
#![allow(unions_with_drop_fields)]
|
||||
|
||||
#![feature(untagged_unions)]
|
||||
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@
|
|||
// except according to those terms.
|
||||
|
||||
// run-pass
|
||||
#![allow(unions_with_drop_fields)]
|
||||
|
||||
#![feature(untagged_unions)]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue