Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #![feature(async_await, await_macro, existential_type)]
- use std::future::Future;
- async fn foo(_: &u8) {}
- pub existential type ServeFut: Future<Output=()>;
- fn bar() -> ServeFut {
- async move {
- let x = 5;
- await!(foo(&x))
- }
- }
- fn main() {}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement