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

Match patterns can't be macros #6830

Closed
huonw opened this issue May 30, 2013 · 4 comments
Closed

Match patterns can't be macros #6830

huonw opened this issue May 30, 2013 · 4 comments
Labels
P-low Low priority

Comments

@huonw
Copy link
Member

huonw commented May 30, 2013

E.g.

fn main() {
   match &[1,2,3] {
      bytes!("abc") => (),
      _ => ()
   }
}
pattern-macro.rs:3:11: 3:12 error: expected `=>` but found `!`
pattern-macro.rs:3       bytes!("abc") => (),
                              ^

Possibly required for #5346.

@alexcrichton
Copy link
Member

Nominating for the feature-complete milestone. If this is going to be a feature, it sounds like a good feature to be done by then.

@catamorphism
Copy link
Contributor

Accepted for feature-complete

@pnkfelix
Copy link
Member

P-low, not 1.0.

@kmcallister
Copy link
Contributor

I'm working on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P-low Low priority
Projects
None yet
Development

No branches or pull requests

5 participants