SHARE
TWEET

Untitled

a guest Oct 23rd, 2019 85 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #![feature(unboxed_closures)]
  2.  
  3. use std::future::Future;
  4.  
  5. fn foo<F, S>(_: F)
  6. where
  7.     F: FnMut<(S,)>,
  8.     <F as FnOnce<(S,)>>::Output: Future<Output = ()>,
  9. {}
  10. async fn bar(x: &mut i32) {
  11.    
  12. }
  13.  
  14. fn main() {
  15.     foo(bar);
  16. }
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