Skip to content

ICE in match statement at conditional catch-all #4369

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

Closed
Kimundi opened this issue Jan 7, 2013 · 1 comment
Closed

ICE in match statement at conditional catch-all #4369

Kimundi opened this issue Jan 7, 2013 · 1 comment

Comments

@Kimundi
Copy link
Member

Kimundi commented Jan 7, 2013

Reproduceable with this:

fn main() {
    let x = 5;
    match x {
        // 3 => (), // uncomment to get non-exhaustive patterns error
        _ if true => (),
        // _ => ()   // ICE if missing
    }
}
@catamorphism
Copy link
Contributor

Looks like the same bug as #3121 , which I've had on my to-do list to finish for a long time. Thanks for the report!

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

2 participants