-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Closed
Copy link
Labels
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and toolsA-error-codesArea: Explanation of an error code (--explain)Area: Explanation of an error code (--explain)T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
Location
https://doc.rust-lang.org/stable/error_codes/E0562.html (source in this repository)
Summary
Currently it states:
Abstract return types (written impl Trait for some trait Trait) are only allowed as function and inherent impl return types.
But it is allowed also in argument position. The page also links RFC 1522 which covers only a part of currently stable impl Trait
- it should maybe point to page in rust reference.
It was addressed by #116431 for compiler diagnostics, but not in the error code description.
Metadata
Metadata
Assignees
Labels
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and toolsA-error-codesArea: Explanation of an error code (--explain)Area: Explanation of an error code (--explain)T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.