-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Casting () to ! fails on nightly with an internal compiler error #38769
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
Comments
It is undefined behavior to construct a value of type |
|
This seems to be a duplicate of #36479 |
Thanks! Closing as duplicate of #36479. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I tried to compile the following code with rustc 1.16.0 nightly:
It failed with a compiler error:
P. S. What is an expected behavior when casting to
!
type? Should I open a separate issue for that?The text was updated successfully, but these errors were encountered: