use varlen::define_varlen; #[define_varlen] struct StructWithUndefinedTypes { #[controls_layout] header_variable: UndefinedType1, mut_variable: UndefinedType2, #[varlen_array] arr: [UndefinedType3; 4usize], } struct RequiresCopy(T); #[define_varlen] struct StructWithIllFormedTypes { #[controls_layout] header_variable: RequiresCopy, mut_variable: RequiresCopy>, #[varlen_array] arr: [RequiresCopy>>; 4usize], } #[define_varlen] struct StructWithUnsizedTypes { #[controls_layout] header_variable: [u8], mut_variable: [u16], #[varlen_array] arr: [[u32]; 4], } fn main() {}