Type annotations needed for closure with associated type #140603
Labels
A-closures
Area: Closures (`|…| { … }`)
A-inference
Area: Type inference
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-types
Relevant to the types team, which will review and decide on the PR/issue.
I tried this code:
I expect this to compile, but the
test_bad
function does not compile.Meta
Rust Version: 1.86.0
The text was updated successfully, but these errors were encountered: