1 2 3 4 5 6 7 8 9
use binread::BinRead; #[derive(BinRead)] #[br(assert("wrong type"))] struct Foo { a: i32, } fn main() {}