Guest User

Untitled

a guest
May 27th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. #![feature(fn_traits)]
  2. #![feature(unboxed_closures)]
  3.  
  4. use std::ops;
  5.  
  6. struct Bar;
  7. struct Foo;
  8.  
  9. impl ops::FnOnce<usize> for Foo {
  10. type Output = Bar;
  11.  
  12. extern "rust-call" fn call_once(self, idx: usize) -> Self::Output {
  13. unimplemented!()
  14. }
  15. }
  16.  
  17. fn main() {}
Add Comment
Please, Sign In to add comment