Guest User

Untitled

a guest
May 24th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. fn lol<F, C>(f: F) -> C
  2. where
  3. F: FnOnce(Box<Fn() -> i32>) -> C,
  4. {
  5. f(Box::new(|| 32))
  6. }
  7.  
  8. fn main() {
  9. println!("{}", lol(
  10. move |f| f()/4
  11. ))
  12. }
Add Comment
Please, Sign In to add comment