error[E0277]: the trait bound `LocatedTestError<'_>: FromExternalError, AError>` is not satisfied --> tests/trybuild/03-from-external-not-defined.rs:26:22 | 26 | let (buf, ret) = nom::combinator::map_res(be_u8, |_| Err(AError::A))(buf)?; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `FromExternalError, AError>` is not implemented for `LocatedTestError<'_>` | = help: the trait `FromExternalError, TestError>` is implemented for `LocatedTestError<'_>` = help: for that trait implementation, expected `TestError`, found `AError` note: required by a bound in `map_res` --> $CARGO/nom-7.1.3/src/combinator/mod.rs | | pub fn map_res, E2, F, G>( | ^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `map_res`