5 struct SizedStruct(i32);
6 struct UnsizedStruct([i32]);
8 /// The following should trigger the lint
10 use super::SizedStruct;
12 struct StructWithVecBox {
13 sized_type: Vec<Box<SizedStruct>>,
16 struct A(Vec<Box<SizedStruct>>);
17 struct B(Vec<Vec<Box<(u32)>>>);
20 /// The following should not trigger the lint
21 mod should_not_trigger {
22 use super::UnsizedStruct;
24 struct C(Vec<Box<UnsizedStruct>>);
26 struct StructWithVecBoxButItsUnsized {
27 unsized_type: Vec<Box<UnsizedStruct>>,
30 struct TraitVec<T: ?Sized> {
31 // Regression test for #3720. This was causing an ICE.