plex icon indicating copy to clipboard operation
plex copied to clipboard

Token lifetime in parser

Open kaimast opened this issue 5 years ago • 0 comments

Hi,

If I add a lifetime to my token enum like in the README, I have a hard time compiling the parser. Essentially I get the following error.

error[E0106]: missing lifetime specifier
src/parser/mod.rs:53:19
53 |         fn parse_(Token, Span);
     |                   ^^^^^ help: consider giving it an explicit bounded or 'static lifetime: `Token + 'static`

How do I add a lifetime here? The syntax of this macro is a little confusing...

kaimast avatar Feb 25 '20 01:02 kaimast