5 struct SizedStruct(i32);
6 struct UnsizedStruct([i32]);
7 struct BigStruct([i32; 10000]);
9 /// The following should trigger the lint
11 use super::SizedStruct;
13 struct StructWithVecBox {
14 sized_type: Vec<SizedStruct>,
17 struct A(Vec<SizedStruct>);
18 struct B(Vec<Vec<u32>>);
21 /// The following should not trigger the lint
22 mod should_not_trigger {
23 use super::{BigStruct, UnsizedStruct};
25 struct C(Vec<Box<UnsizedStruct>>);
26 struct D(Vec<Box<BigStruct>>);
28 struct StructWithVecBoxButItsUnsized {
29 unsized_type: Vec<Box<UnsizedStruct>>,
32 struct TraitVec<T: ?Sized> {
33 // Regression test for #3720. This was causing an ICE.