yvt / try_match-rs

An expression macro that matches a pattern and returns `Result` or `Option`.

Home Page:https://crates.io/crates/try_match

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Constant patterns are mistaken for variable binding

yvt opened this issue · comments

commented

https://docs.rs/syn/2.0.15/syn/struct.PatIdent.html

A pattern that binds a new variable: ref mut binding @ SUBPATTERN.

It may also be a unit struct or struct variant (e.g. None), or a constant; these cannot be distinguished syntactically.

commented

Fixed in commit 5ed0b77