Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to use or-patterns within expressions in match arms #14516

Manishearth opened this Issue May 29, 2014 · 2 comments


None yet
3 participants
Copy link

Manishearth commented May 29, 2014

We already can use patterns like Some(_) in a match arm. However, stuff like Some( 1 | 2 | 3) doesn't work.

Could support for nesting patterns be added?


This comment has been minimized.

Copy link

ben0x539 commented May 30, 2014

See also #9663—I guess this should go through the RFC process at this point


This comment has been minimized.

Copy link

alexcrichton commented Sep 16, 2014

This is a dupe of #17180, and as @P1start mentioned over there the corresponding RFC is rust-lang/rfcs#99, so I'm going to close this in favor of the RFC.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.