use<>
bounds ("precise capture") require all type parameters to be listed
#130031
Labels
C-discussion
Category: Discussion or questions that doesn't represent real issues.
F-precise_capturing
`#![feature(precise_capturing)]`
T-types
Relevant to the types team, which will review and decide on the PR/issue.
The current implementation of precise capture requires that
use<>
bounds include all type parameters in scope. This is a temporary limitation that should be lifted. Example:This code should compile, but it current gives an error (playground):
The text was updated successfully, but these errors were encountered: