Syntax for precise capturing: impl Trait + use<..>
#125836
Closed
Description
opened on Jun 1, 2024
For precise capturing (#123432), we need to decide which syntax to adopt.
The original two, left as an open question in the RFC, were:
impl use<..> Trait
- This syntax is used throughout the RFC.
use<..> impl Trait
- This syntax is the worthy challenger.
(See the alternatives section in the RFC for a detailed comparative analysis of these options. In particular, so as to reduce duplication, please read that section carefully before commenting here.)
However, in the design meeting on 2024-06-05, as described below, we settled on placing use<..>
within the list of bounds, e.g.:
fn foo<'a>() -> impl Sized + use<'a> {}
This issue is to track the resolution of the open question on syntax left in the RFC.
Tracking:
Activity