SHARE
TWEET

Untitled

a guest Oct 21st, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. fn call_back<F>(func: F) {
  2.     func(5);
  3. }
  4.  
  5. fn main() {
  6.     call_back(|x: i32|{
  7.         println!("{}", x);
  8.     });
  9. }
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