allow pure closures to be created, inferred #3023
Labels
A-lifetimes
Area: Lifetimes / regions
A-type-system
Area: Type system
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
Milestone
You can't create pure closures right now. This is sometimes helpful in writing functions that operate on const data. I think this will just be a matter of adjusting typeck to determine purity from the expected type.
The text was updated successfully, but these errors were encountered: