Skip to content

fix: Infer the expected type as the return type for async blocks defined by async fns#22275

Merged
ChayimFriedman2 merged 1 commit intorust-lang:masterfrom
ChayimFriedman2:future-output
May 4, 2026
Merged

fix: Infer the expected type as the return type for async blocks defined by async fns#22275
ChayimFriedman2 merged 1 commit intorust-lang:masterfrom
ChayimFriedman2:future-output

Conversation

@ChayimFriedman2
Copy link
Copy Markdown
Contributor

@ChayimFriedman2 ChayimFriedman2 commented May 4, 2026

Ported from rustc.

Fixes #21477.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label May 4, 2026
@ChayimFriedman2 ChayimFriedman2 added this pull request to the merge queue May 4, 2026
Merged via the queue into rust-lang:master with commit 217af23 May 4, 2026
18 checks passed
@ChayimFriedman2 ChayimFriedman2 deleted the future-output branch May 4, 2026 13:51
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label May 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

async fn returning boxed dyn trait requires explicit coercion

3 participants