error[E0425]: cannot find value `missing` in this scope --> tests/ui/bad_parse_with_fn.rs:18:23 | 18 | #[br(parse_with = missing)] | ^^^^^^^ not found in this scope error[E0277]: expected a `FnOnce(&mut _, binrw::Endian, _)` closure, found `{integer}` --> tests/ui/bad_parse_with_fn.rs:10:23 | 10 | #[br(parse_with = 56)] | ^^ expected an `FnOnce(&mut _, binrw::Endian, _)` closure, found `{integer}` | = help: the trait `for<'a> FnOnce(&'a mut _, binrw::Endian, _)` is not implemented for `{integer}` note: required by a bound in `parse_fn_type_hint` --> src/private.rs | | pub fn parse_fn_type_hint(f: ParseFn) -> ParseFn | ------------------ required by a bound in this function ... | ParseFn: FnOnce(&mut R, Endian, Args) -> BinResult, | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `parse_fn_type_hint` error[E0618]: expected function, found `{integer}` --> tests/ui/bad_parse_with_fn.rs:10:23 | 10 | #[br(parse_with = 56)] | ^^ call expression requires function error[E0308]: mismatched types --> tests/ui/bad_parse_with_fn.rs:12:35 | 12 | #[br(parse_with = |_, _, _| { true })] | ^^^^ expected `Result<_, Error>`, found `bool` | = note: expected enum `Result<_, binrw::Error>` found type `bool` help: try wrapping the expression in `Ok` | 12 | #[br(parse_with = |_, _, _| { Ok(true) })] | +++ + error[E0308]: mismatched types --> tests/ui/bad_parse_with_fn.rs:14:23 | 14 | #[br(parse_with = |_, _, _| { Ok(true) })] | ^^^^^^^^^^^^^^^^^^^^^^ expected `i32`, found `bool` 15 | c: i32, | --- expected `i32` because of return type error[E0308]: mismatched types --> tests/ui/bad_parse_with_fn.rs:16:23 | 16 | #[br(parse_with = wrong)] | ^^^^^ expected `i32`, found `bool` 17 | d: i32, | --- expected `i32` because of return type