Open
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.