use binrw::BinRead; #[derive(Clone, Copy)] struct NoDefault; #[derive(BinRead)] struct MissingArgs(Vec); #[derive(BinRead)] struct WrongType(#[br(args((),))] Vec); #[derive(BinRead)] struct MissingCount(#[br(args { inner: () })] Vec); #[derive(BinRead)] #[br(import(_a: NoDefault))] struct Inner { _b: u8, } #[derive(BinRead)] struct WrongCountType(#[br(count = Some(1))] Vec); #[derive(BinRead)] struct MissingInnerArgs(#[br(count = 1)] Vec); fn main() { Vec::::read(&mut binrw::io::Cursor::new(b"")).unwrap(); }