error[E0277]: expected a `Fn(T)` closure, found `bool` --> tests/invalid_parser_map.rs:6:17 | 6 | parser!(a->[false]) | ------------^^^^^-- | | | | | expected an `Fn(T)` closure, found `bool` | required by a bound introduced by this call | = help: the trait `Fn<(T,)>` is not implemented for `bool` note: required by a bound in `langbox::Parser::map` --> src/parser.rs | | fn map(self, f: impl Fn(T) -> U + Copy) -> impl Parser { | ^^^^^^^^^^ required by this bound in `Parser::map` error[E0277]: the trait bound `impl langbox::Parser: langbox::Parser` is not satisfied --> tests/invalid_parser_map.rs:5:6 | 5 | ) -> impl Parser { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `langbox::Parser` is not implemented for `impl langbox::Parser` error[E0277]: expected a `Fn(T)` closure, found `bool` --> tests/invalid_parser_map.rs:5:6 | 5 | ) -> impl Parser { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected an `Fn(T)` closure, found `bool` | = help: the trait `Fn<(T,)>` is not implemented for `bool` note: required by a bound in `langbox::Parser::{synthetic#7}` --> src/parser.rs | | fn map(self, f: impl Fn(T) -> U + Copy) -> impl Parser { | ^^^^^^^^^^ required by this bound in `Parser::{synthetic#7}`