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 up
Variable labeling of complex match arms should be able to label the whole arm #15219
If I have a match arm like this:
the following does not work:
In the former example, the
Of course, one can do
but that is cumbersome.
Could we get a way to easily bind a variable to the entire match arm?
I'm pulling a massive triage effort to get us ready for 1.0. As part of this, I'm moving stuff that's wishlist-like to the RFCs repo, as that's where major new things should get discussed/prioritized.
This issue has been moved to the RFCs repo: rust-lang/rfcs#673