the error
error[E0271]: expected `Rev<Iter<'_, Token>>` to be an iterator that yields `Token`, but it yields `&Token`
--> src/commands/eval/parse.rs:55:40
|
55 | let (tree, _) = ParseTree::new(&mut tokens).expect("Failed to parse input");
| -------------- ^^^^^^^^^^^ expected `Token`, found `&Token`
| |
| required by a bound introduced by this call
|
note: required by a bound in `parse::ParseTree::new`
--> src/commands/eval/parse.rs:29:28
|
29 | pub fn new<I: Iterator<Item = Token>>(tokens: &mut I) -> Result<(Self, usize), ParseError> {
| ^^^^^^^^^^^^ required by this bound in `ParseTree::new`