Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #![feature(type_alias_impl_trait)]
- use std::future::Future;
- async fn foo() {}
- type Fut = impl Future<Output = ()>;
- fn bar() -> Fut { foo() }
- const FOO: fn() -> Fut = bar;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement