Skip to content

E0562 should mention impl Trait in argument position in Error codes index #142683

Open
@VojtaStanek

Description

@VojtaStanek

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

No one assigned

    Labels

    A-docsArea: 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.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions