You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the trait is sealed, so the usage pattern is quite limited. Can we do something in an edition change to remove the unnecessary type bounds somehow? Or just accept an unused type bound? Probably wouldn't work with impl SliceIndex<[i32], Output = [i32]> though.
If I have a struct like this:
The type bound for
R
would need to beR: SliceIndex<[T1]> + SliceIndex<[T2]>
, which exposes internal implementation details.I propose moving the
<T>
inSliceIndex<T>
to the methods and leverage GATs:The text was updated successfully, but these errors were encountered: