-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Open
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 toolsneeds-triageThis issue may need triage. Remove it if it has been sufficiently triaged.This issue may need triage. Remove it if it has been sufficiently triaged.
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 toolsneeds-triageThis issue may need triage. Remove it if it has been sufficiently triaged.This issue may need triage. Remove it if it has been sufficiently triaged.