Skip to content

rustdoc does not show where clauses in type aliases #25769

Closed
@bluss

Description

@bluss

Rustdoc does not show where clauses in type aliases

Code is:

pub type MapFn<I, B> where I: Iterator = iter::Map<I, fn(I::Item) -> B>;

Renders in rustdoc as:

type MapFn<I, B> = Map<I, fn(I) -> B>;

The abbreviation of Map is great (it's a link), the loss of the associated types is probably bug #24417, but the where clause is missing too.

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