mirror of
https://git.proxmox.com/git/rustc
synced 2025-05-05 08:34:36 +00:00
20 lines
347 B
Rust
20 lines
347 B
Rust
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() {}
|