Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
rust-lang
reference
Repository navigation
Code
Issues
313
(313)
Pull requests
131
(131)
Actions
Projects
Security and quality
Insights
More
items
Describe async closures
- #1692
#1692
Merged
ehuss
merged 15 commits into
rust-lang:master
rust-lang/reference:master
from
compiler-errors:async-closures
compiler-errors/reference:async-closures
Copy head branch name to clipboard
Dec 14, 2024
Conversation
Commits
15
(15)
Checks
Files changed
Merged
Describe async closures
#1692
ehuss
merged 15 commits into
rust-lang:master
rust-lang/reference:master
from
compiler-errors:async-closures
compiler-errors/reference:async-closures
Copy head branch name to clipboard
Commits
Commits on Dec 11, 2024
Describe async closures
compiler-errors
authored and
ehuss
committed
db097d7
View commit details
Copy full SHA for db097d7
Browse repository at this point
Update std-links to default to 2024
ehuss
committed
e7a4396
View commit details
Copy full SHA for e7a4396
Browse repository at this point
Async closures cannot be coerced to a function pointer
ehuss
committed
2cccea5
View commit details
Copy full SHA for 2cccea5
Browse repository at this point
Note that `async` closure keyword is edition-specific
Show description for a81141d
ehuss
committed
a81141d
View commit details
Copy full SHA for a81141d
Browse repository at this point
`await` can also be used in async closures
ehuss
committed
927ab5e
View commit details
Copy full SHA for 927ab5e
Browse repository at this point
Note that call expressions also work with the new AsyncFn* types
ehuss
committed
721b5cb
View commit details
Copy full SHA for 721b5cb
Browse repository at this point
Slight rewording of async closure expr
Show description for 8f2cf33
ehuss
committed
8f2cf33
View commit details
Copy full SHA for 8f2cf33
Browse repository at this point
Commits on Dec 12, 2024
Clarify that Async family is not dyn-compatible
ehuss
committed
10240ea
View commit details
Copy full SHA for 10240ea
Browse repository at this point
Another clarification that async closures cannot be coerced to a fn pointer
ehuss
committed
502e8af
View commit details
Copy full SHA for 502e8af
Browse repository at this point
Further elaborate on async closure trait implementation
ehuss
committed
ff8c4eb
View commit details
Copy full SHA for ff8c4eb
Browse repository at this point
Specify that async closures capture their inputs
ehuss
committed
1106780
View commit details
Copy full SHA for 1106780
Browse repository at this point
Add a basic example for a closure expression
ehuss
committed
73832d3
View commit details
Copy full SHA for 73832d3
Browse repository at this point
Some tweaks to the async Fn* wording
Show description for adef05f
ehuss
committed
adef05f
View commit details
Copy full SHA for adef05f
Browse repository at this point
Add examples for async's Fn* rules
Show description for 5a8b949
ehuss
committed
5a8b949
View commit details
Copy full SHA for 5a8b949
Browse repository at this point
Async clarifications from compiler-errors
ehuss
committed
8eb71da
View commit details
Copy full SHA for 8eb71da
Browse repository at this point
You can’t perform that action at this time.