Guest User

Untitled

a guest
Mar 23rd, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. #![feature(copy_closures)]
  2. #![feature(clone_closures)]
  3.  
  4. fn main() {
  5. fn call<F: FnOnce()>(f: F) { f(); f() }
  6. let hello = || println!("Hello, world!");
  7. call(hello);
  8. }
Add Comment
Please, Sign In to add comment