-
Notifications
You must be signed in to change notification settings - Fork 12.5k
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
ICE when coercing NonNull<[T; 0]>
to NonNull<[T]>
in const fn
#75118
Comments
@jonas-schievink I added this to the original comment: On rust stable 1.45.1, it causes this compilation error instead:
|
Yes, the error message regressed. I don't know if the code is supposed to compile on beta or if it should still fail with the same error, but an ICE is a regression either way. |
Yes, return an error mentioning that unsizing is only allowed for references right now. |
Code
Meta
rustc --version --verbose
:Error output
Backtrace
The text was updated successfully, but these errors were encountered: