syn icon indicating copy to clipboard operation
syn copied to clipboard

`syn::Arm` parses but `syn::Pat` does not with the "same" input

Open Dzejkop opened this issue 3 years ago • 0 comments

It's possible to parse "lit 1" | "lit 2" => todo!() into syn::Arm, but parsing "lit 1" | "lit 2" into syn::Pat fails with unexpected token.

Playground example

Dzejkop avatar Dec 20 '21 12:12 Dzejkop