Advertisement
Guest User

Untitled

a guest
Aug 24th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. use futures::future::Future; // 0.1.28
  2.  
  3. fn main() {
  4. let f1 = futures::future::ok::<(), ()>(());
  5. let f2 = futures::future::ok::<(), ()>(());
  6. f1.and_then(move |_| f2).wait().unwrap();
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement