rust/tests/ui/vec_box_sized.rs
2018-12-13 07:43:13 -08:00

18 lines
232 B
Rust

struct SizedStruct {
_a: i32,
}
struct UnsizedStruct {
_a: [i32],
}
struct StructWithVecBox {
sized_type: Vec<Box<SizedStruct>>,
}
struct StructWithVecBoxButItsUnsized {
unsized_type: Vec<Box<UnsizedStruct>>,
}
fn main() {}