SHARE
TWEET

Untitled

a guest Apr 20th, 2019 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. fn pippo(a: Option<Box<Fn() -> bool>>) {
  2.     if let Some(f) = a {
  3.         println!("{:?}", f());
  4.     }
  5. }
  6.  
  7. fn main() {
  8.     pippo(None);
  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