olson-sean-k / wax

Opinionated and portable globs that can be matched against paths and directory trees.
https://glob.guide
MIT License
112 stars 10 forks source link

Compile failed in rustc 1.62.0-nightly (e85edd9a8 2022-04-28) #22

Closed gipsyh closed 2 years ago

gipsyh commented 2 years ago
error[E0106]: missing lifetime specifier
    --> src/token.rs:1447:61
     |
1447 |     ) -> impl FnMut(Input<'i>) -> ParseResult<'i, TokenKind<Annotation>> {
     |                                                             ^ expected named lifetime parameter
     |
     = help: this function's return type contains a borrowed value with an elided lifetime, but the lifetime cannot be derived from the arguments
help: consider using the `'i` lifetime
     |
1447 |     ) -> impl FnMut(Input<'i>) -> ParseResult<'i, TokenKind<'i, Annotation>> {
     |                                                             +++

For more information about this error, try `rustc --explain E0106`.
error: could not compile `wax` due to previous error
olson-sean-k commented 2 years ago

Fixed in fd37425. Thanks for reporting this and providing a fix!