Skip to content

Documentation for Clone lists incorrect implementation definitions #26384

@Nashenas88

Description

@Nashenas88

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions