Skip to content

Rustdoc suggests notable trait for &mut when given shared reference #78160

@carbotaniuman

Description

@carbotaniuman
Contributor

I can't tell what version this is, but I was browsing the HashMap documentation here and came across this block for fn key(&self).

Notable traits for &'_ mut F
impl<'_, F> Future for &'_ mut F 
where
    F: Unpin + Future + ?Sized, 
    type Output = <F as Future>::Output;
impl<'_, I> Iterator for &'_ mut I 
where
    I: Iterator + ?Sized, 
    type Item = <I as Iterator>::Item;
impl<R: Read + ?Sized, '_> Read for &'_ mut R
impl<W: Write + ?Sized, '_> Write for &'_ mut W

Activity

added
C-bugCategory: This is a bug.
T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.
on Oct 20, 2020
added a commit that references this issue on Dec 11, 2021
6c66d34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-trait-systemArea: Trait systemC-bugCategory: This is a bug.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

      Participants

      @Manishearth@camelid@carbotaniuman

      Issue actions

        Rustdoc suggests notable trait for `&mut` when given shared reference · Issue #78160 · rust-lang/rust