-
Notifications
You must be signed in to change notification settings - Fork 13k
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
const indexing broken in nightly with bit shift (<<) #30226
Comments
What's happening here is that there are const evaluations attempted to determine whether the shift is statically known to be overly long ( |
This is the fix: #30202 |
This can be closed? |
Yep, the issue is fixed and has tests. Fixed in #30202. |
I still get the same compiler error using the latest nightly, however, it looks like the fix has already been merged |
On the current nightly, This does not yet include the fix. |
it was merged yesterday, so it should probably be in today's nightly (2015-12-08) |
For some reason, indexing an array with a const requires an unstable feature when there is a bit shift operator. help: in Nightly builds, add
#![feature(const_indexing)]
to the crate attributes to enable. When adding the feature, there are no more errors but this feature shouldn't be necessary.rustc 1.6.0-nightly (d49e365 2015-12-05)
The text was updated successfully, but these errors were encountered: