Allow unions_with_drop_fields for unions with members with destructors

(or generics that *might* have dtors)
This commit is contained in:
Felix S. Klock II 2018-09-06 14:51:14 +02:00
parent 84a02e17da
commit 8e72955526
5 changed files with 5 additions and 0 deletions

View file

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(unions_with_drop_fields)]
// Some traits can be derived for unions.

View file

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(unions_with_drop_fields)]
// Drop works for union itself.

View file

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(unions_with_drop_fields)]
// Drop works for union itself.

View file

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(unions_with_drop_fields)]
#![feature(untagged_unions)]

View file

@ -9,6 +9,7 @@
// except according to those terms.
// run-pass
#![allow(unions_with_drop_fields)]
#![feature(untagged_unions)]