Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement