-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Internal compiler error with enums #62375
Comments
Does not panic on nightly-2019-06-17 (playground nightly). Must have been fixed. @jonas-schievink E-needstest? |
@crone123 you should update your rust |
@crone123: You can use the (Or you can say |
Ok thank you ! |
Add test for ICE rust-lang#62375 Fixes rust-lang#62375
Rollup of 8 pull requests Successful merges: - #60260 (Add support for UWP targets) - #62151 (Update linked OpenSSL version) - #62245 (Miri engine: support extra function (pointer) values) - #62257 (forward read_c_str method from Memory to Alloc) - #62264 (Fix perf regression from Miri Machine trait changes) - #62296 (request at least ptr-size alignment from posix_memalign) - #62329 (Remove support for 1-token lookahead from the lexer) - #62377 (Add test for ICE #62375) Failed merges: r? @ghost
Add test for ICE rust-lang#62375 Fixes rust-lang#62375
Rollup of 7 pull requests Successful merges: - #62151 (Update linked OpenSSL version) - #62245 (Miri engine: support extra function (pointer) values) - #62257 (forward read_c_str method from Memory to Alloc) - #62264 (Fix perf regression from Miri Machine trait changes) - #62296 (request at least ptr-size alignment from posix_memalign) - #62329 (Remove support for 1-token lookahead from the lexer) - #62377 (Add test for ICE #62375) Failed merges: r? @ghost
Hello,
I found a bug while developing a project who produce an internal error.
I create this code to reproduce the error:
I got this error:
If you do the same using an Option, for example:
But if you do this:
You got another internal compiler error:
And to know: There is a correct way to do this without a match?
I try this, but it wasn't accepted:
Thank you
The text was updated successfully, but these errors were encountered: