Skip to content

Types made public via associated types are not documented #60686

@nagisa

Description

@nagisa

Given following code:

mod raspberry {
    pub struct Banana;
}

pub struct Peach;

pub trait Apple {
    type Juice;
}

impl Apple for Peach {
    type Juice = raspberry::Banana;
}

The generated documentation will not include documentation for <Peach as Apple>::Juice.

Screenshot_2019-05-10 lib Peach - Rust

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-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

    No branches or pull requests

    Issue actions