Skip to content

Rustdoc doesn't show default type parameters #12291

Closed
@huonw

Description

@huonw

In

#[feature(default_type_params)];
#[crate_id="deftypar"];
#[crate_type="lib"];

/// Docs...
pub struct Foo<A = int>;

Foo gets rendered as

pub struct Foo<A>;

Docs...

but it should definitely be mentioning the = int part.

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