Open compiler-errors opened 1 year ago
Actually I forgot to click submit on this issue and I think I solved it in the mean time...
edit: didnt actually solve it completely, it still exists for early-bound lifetimes
What’s the status on this? Can I help progress this? With some mentoring I do not mind volunteering dev time to help moving https://github.com/rust-lang/rust/labels/F-async_fn_in_trait further and getting it to hopefully something stable this year.
The fix for this is not clear, possibly related to a far more general problem with async (#110338), and probably not mentorable unfortunately :(
This issue is not blocking async fn in trait stabilization, though.
Ok. Does seem like an easy issue to run into for which I do not see a workaround. But I’ll trust you at your word. Thx!
I tried this code:
I expected to see this happen: it works
Instead, this happened: