Skip to content

allow pure closures to be created, inferred #3023

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
nikomatsakis opened this issue Jul 26, 2012 · 0 comments
Closed

allow pure closures to be created, inferred #3023

nikomatsakis opened this issue Jul 26, 2012 · 0 comments
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.

Comments

@nikomatsakis
Copy link
Contributor

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.

@ghost ghost assigned msullivan Aug 24, 2012
catamorphism pushed a commit to catamorphism/rust that referenced this issue Oct 8, 2012
RalfJung pushed a commit to RalfJung/rust that referenced this issue Aug 11, 2023
add gamma function shims

needs a rustup to fetch the new declarations in std
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.
Projects
None yet
Development

No branches or pull requests

2 participants