Skip to content

rustdoc removes Try from <Self as Try>::Residual in std::ops::FromResidual #85454

@veber-alex

Description

@veber-alex

In the docs for the new FromResidual trait here:
https://doc.rust-lang.org/nightly/std/ops/trait.FromResidual.html

The trait is shown as:

pub trait FromResidual<R = Self::Residual> {
    fn from_residual(residual: R) -> Self;
}

which is not valid and will not compile, in the source it looks like this:

pub trait FromResidual<R = <Self as Try>::Residual> {
    fn from_residual(residual: R) -> Self;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-associated-itemsArea: Associated items (types, constants & functions)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