ok finally i can send it, here it is
error[E0277]: expected a `FnMut(&mut &[lex::Token])` closure, found `lex::Token`
--> src/parse/function.rs:17:5
|
17 | / seq!{Function {
18 | | _: Token::Func,
19 | | name: Token::Ident,
21 | | _: Token::LBrace,
22 | | body: repeat_till(0.., Token::RParen, parse_stmt),
23 | | }}.parse_next(input)
| |______^ expected an `FnMut(&mut &[lex::Token])` closure, found `lex::Token`
|
= help: the trait `for<'a> FnMut(&'a mut &[lex::Token])` is not implemented for `lex::Token`
= help: the following other types implement trait `winnow::Parser<I, O, E>`:
`&'s [u8; N]` implements `winnow::Parser<I, <I as Stream>::Slice, E>`
`&'s [u8]` implements `winnow::Parser<I, <I as Stream>::Slice, E>`
`&'s str` implements `winnow::Parser<I, <I as Stream>::Slice, E>`
`()` implements `winnow::Parser<I, (), E>`
`(P1, P2)` implements `winnow::Parser<I, (O1, O2), E>`
`(P1, P2, P3)` implements `winnow::Parser<I, (O1, O2, O3), E>`
`(P1, P2, P3, P4)` implements `winnow::Parser<I, (O1, O2, O3, O4), E>`
`(P1, P2, P3, P4, P5)` implements `winnow::Parser<I, (O1, O2, O3, O4, O5), E>`
and 43 others
= note: required for `lex::Token` to implement `winnow::Parser<&[lex::Token], _, ContextError>`
error[E0308]: mismatched types
--> src/parse/function.rs:17:5
|
17 | / seq!{Function {
18 | | _: Token::Func,
19 | | name: Token::Ident,
21 | | _: Token::LBrace,
22 | | body: repeat_till(0.., Token::RParen, parse_stmt),
23 | | }}.parse_next(input)
| |______^ expected `Vec<Stmt>`, found `(_, Stmt)`
|
= note: expected struct `Vec<Stmt>`
found tuple `(_, Stmt)`