-
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
Array range indexes don't work in const eval #73083
Labels
C-bug
Category: This is a bug.
Comments
Can this be reopened? Const indexing on array and slice was only implemented for single indices, but there doesn't seem to be a technical reason why this wouldn't work for ranges as well. Currently this requires dropping down to pointers and transmutes, which is pretty messy. Const traits still haven't landed, and don't seem to be close. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I haven't been able to find any issue dealing with this. It seems that
min_const_fn
stabilised array indexes but not ranges and ranges don't work.I tried this code:
Error:
Meta
The text was updated successfully, but these errors were encountered: