-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
Implement Index for &[T] #16529
Comments
I'm somewhat inclined to think we could just remove the built-in indexing from
Users would theoretically not see a change, since this would all happen inside |
@huonw: It's not possible due to lack of CTFE. |
cc me |
Should I send a PR implementing I already tested that PR, and the built-in indexing is preferred in the operation |
@japaric Yes, please go ahead and do so. Thanks! |
As titled. Although slices support the
a[b]
operator, it does not implementIndex<uint, T>
, so one cannot pass in a slice in the following example:The text was updated successfully, but these errors were encountered: