rust/tests/ui/vec_box_sized.rs

18 lines
244 B
Rust
Raw Normal View History

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