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

the pattern 'x()' should not be a legal identifier pattern #5947

Closed
jbclements opened this issue Apr 18, 2013 · 1 comment
Closed

the pattern 'x()' should not be a legal identifier pattern #5947

jbclements opened this issue Apr 18, 2013 · 1 comment

Comments

@jbclements
Copy link
Contributor

It should not be possible to use x() as a match pattern, like this:

fn main() {
    let z = match 3 {
        x() => x
    };
    assert_eq!(z,3);
}

I have a fix for this, I'm just adding it to get an issue number.

@jbclements
Copy link
Contributor Author

fixed, now. closing.

flip1995 pushed a commit to flip1995/rust that referenced this issue Aug 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant