2022-06-29 21:33:18 -05:00
|
|
|
use std::mem::ManuallyDrop;
|
2017-08-16 06:32:41 -05:00
|
|
|
|
|
|
|
union Foo<T: ?Sized> {
|
2022-06-29 21:33:18 -05:00
|
|
|
value: ManuallyDrop<T>,
|
2018-07-10 16:10:13 -05:00
|
|
|
//~^ ERROR the size for values of type
|
2017-08-16 06:32:41 -05:00
|
|
|
}
|
|
|
|
|
2017-08-16 11:45:54 -05:00
|
|
|
struct Foo2<T: ?Sized> {
|
2022-06-29 21:33:18 -05:00
|
|
|
value: ManuallyDrop<T>,
|
2018-07-10 16:10:13 -05:00
|
|
|
//~^ ERROR the size for values of type
|
2017-08-16 11:45:54 -05:00
|
|
|
t: u32,
|
|
|
|
}
|
|
|
|
|
|
|
|
enum Foo3<T: ?Sized> {
|
2022-06-29 21:33:18 -05:00
|
|
|
Value(ManuallyDrop<T>),
|
2018-07-10 16:10:13 -05:00
|
|
|
//~^ ERROR the size for values of type
|
2017-08-16 11:45:54 -05:00
|
|
|
}
|
|
|
|
|
2017-08-16 06:32:41 -05:00
|
|
|
fn main() {}
|