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
The documentation for Clone states that the first implementor is Wrapping: impl<T> Clone for Wrapping<T> where T:_Clone + Clone_
Range is even more interesting: impl<Idx> Clone for Range<Idx> where Idx:_Clone + Clone + Clone_
I would think that these should be documented as impl<T> Clone for Wrapping<T> where T: Clone and impl<Idx> Clone for Range<Idx> where Idx: Clone, respectively.
The text was updated successfully, but these errors were encountered:
Ideally, the deriving code shouldn't be generating the duplicates (and conversion with @huonw suggests that it's just left-over code from an experiment with a different deriving technique). The other two cases would be nice to fix too though.
Sorry, I accidentally clicked "close" instead of "cancel". @steveklabnik, I also thought it would be a duplicate, but I spent quite some time searching for an existing one with no luck. I filed it in case it was one of those where everyone thought it was filed, but wasn't.
The documentation for
Clone
states that the first implementor isWrapping
:impl<T> Clone for Wrapping<T> where T:
_Clone + Clone
_Range
is even more interesting:impl<Idx> Clone for Range<Idx> where Idx:
_Clone + Clone + Clone
_I would think that these should be documented as
impl<T> Clone for Wrapping<T> where T: Clone
andimpl<Idx> Clone for Range<Idx> where Idx: Clone
, respectively.The text was updated successfully, but these errors were encountered: