SHARE
TWEET

Untitled

a guest Oct 21st, 2019 82 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #![feature(type_alias_impl_trait)]
  2.  
  3. use std::future::Future;
  4.  
  5. async fn foo() {}
  6.  
  7. type Fut = impl Future<Output = ()>;
  8.  
  9. fn bar() -> Fut { foo() }
  10.  
  11. const FOO: fn() -> Fut = bar;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top