Async code causes error "one type is more general than the other" (expected async
block, found that same async
block) when demanding an impl Send
#126549
Labels
C-bug
Category: This is a bug.
Credit to @Ciel-MC for discovering this.
I tried this code:
I expected the code to compile without errors. Instead, I got the following compile error:
See also #126551, which has similar reproduction code.
Meta
Tested on the playground with stable (1.79.0) and nightly (1.81.0-nightly (2024-06-15 3cf924b))
The text was updated successfully, but these errors were encountered: