-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Labels
A-associated-itemsArea: Associated items (types, constants & functions)Area: Associated items (types, constants & functions)C-bugCategory: This is a bug.Category: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.
Description
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
Labels
A-associated-itemsArea: Associated items (types, constants & functions)Area: Associated items (types, constants & functions)C-bugCategory: This is a bug.Category: This is a bug.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.