Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upBug when variant value has `as <type>` #1
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
faern commentedNov 3, 2018
Really handy crate👌
But I have found that if used on an enum like this:
it produces the following code:
Which is clearly wrong, because now
Bar::try_from(20)will returnNoneinstead ofSome(Bar::B).