Behavior of async fn
and return position impl Future
differs
#109572
Labels
C-bug
Category: This is a bug.
async fn
and return position impl Future
differs
#109572
I tried this code:
I expected to behave identically when I change the function
inner
to:According to async-lifetimes, that is.
Instead, the
-> impl Future
version compiles fine, and the async function version give this error on current stable(1.68.1) & beta(1.69.0-beta.3):And this message on nightly:
Meta
rustc --version --verbose
:I tried stable, beta and nightly.
The text was updated successfully, but these errors were encountered: