blob: cb852eff0c60a50d3c15a78ad659772388f68df0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
use std::mem::ManuallyDrop;
union Foo<T: ?Sized> {
value: ManuallyDrop<T>,
//~^ ERROR the size for values of type
}
struct Foo2<T: ?Sized> {
value: ManuallyDrop<T>,
//~^ ERROR the size for values of type
t: u32,
}
enum Foo3<T: ?Sized> {
Value(ManuallyDrop<T>),
//~^ ERROR the size for values of type
}
fn main() {}
|