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

Use the type of the discriminant when inferring types for pattern arms #171

Closed
pcwalton opened this issue Oct 12, 2010 · 1 comment
Closed

Comments

@pcwalton
Copy link
Contributor

alt (...) { case (none) { ... } } doesn't work because the compiler don't know what kind of "none" it is. This could be inferred from the discriminant.

@graydon
Copy link
Contributor

graydon commented Jan 27, 2011

WONTFIX (not required for bootstrapping; works in rustc automatically, I hope; re-open if not)

oli-obk added a commit to oli-obk/rust that referenced this issue Jul 19, 2017
antoyo added a commit to antoyo/rust that referenced this issue Jun 7, 2022
This issue was closed.
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