Skip to content

Bounds added with where clauses don't appear in documentation #16546

Closed
@japaric

Description

@japaric

STR

pub struct Foo<A>(A);

impl<A: Copy> Foo<A> {
    pub fn unwrap(&self) -> A {
        let &Foo(inner) = self;

        inner
    }
}

impl<A> Foo<A>
where A: Copy
{
    pub fn misdocumented_unwrap(&self) -> A {
        let &Foo(inner) = self;

        inner
    }
}

Output:

Version:

rustc 0.12.0-pre (78ec3904b 2014-08-16 13:01:09 +0000)

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