SHARE
TWEET

Untitled

a guest Jul 22nd, 2019 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #![feature(async_await)]
  2.  
  3. use std::future::Future;
  4.  
  5. struct S;
  6.  
  7. impl S {
  8.     async fn f(&self) {}
  9.  
  10.     fn wtf(&self) -> impl Future<Output = ()> {
  11.         self.f()
  12.     }
  13. }
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top