Closed Nemo157 closed 4 years ago
@Nemo157 that would be very cool! I suspect with a bit of effort we could lift the return type, remove the arrow and insert it as Output = #ret
.
That said, I do think we should keep the nightly constraint until async_await is on stable. Mostly because e.g. introducing fs free functions will likely have to be async fn
. But those aren't here yet (:
I haven't verified fully whether this is possible, but it seems like adding support for
fn main() -> impl Future
(and similar for test functions) would allow usingruntime
on current stable.Minimal example I would expect to work: