2
#
`Struct``Trait`Rust`PhantomData`unused type parameter
use std::marker::PhantomData;
trait Trait
struct Struct
where Impl: Trait
{
a: Vec
phantom: PhantomData
}
fn main() {}
#
1`Box`
trait Trait
struct Struct
a: Vec
}
fn main() {}
`&``&mut``Rc`
#
vtable
trait Trait
struct Struct
a: Vec
}
impl
impl
fn main() {
let mut s: Struct<()> = Struct { a: vec![] };
s.a.push(Box::new(()));
s.a.push(Box::new(true));
}