Skip to content

Rustdoc: impl block with only associated constants not collapsible #71822

Closed
@tspiteri

Description

@tspiteri
pub struct S;
impl S {
    pub const C: () = ();
}
impl S {
    pub fn foo() {}
}

The first impl block with a constant is not collapsible like the second impl block with a function.

methods

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