Closed fmorency closed 2 years ago
Oops, this is from adding a type annotation to help type inference (https://github.com/kevinmehall/rust-peg/pull/317), but impl Trait
can't be named except in a return type position. We'll have to figure out how to fix type inference in that case without explicitly naming the type.
Compilation of a
peg::parser
containing a function returning aBox<impl Trait>
will fail withpeg 0.8.1
but succeed withpeg 0.8.0
.E.g.
MRE: https://github.com/fmorency/peg-box-impl