SHARE
TWEET

Untitled

a guest Aug 19th, 2019 91 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. use std::sync::Arc;
  2. fn hm(item: Option<&u32>) {
  3.     println!("{:#?}", item);
  4. }
  5.  
  6. fn main() {
  7.     let test = Some(Arc::new(5));
  8.     hm(test.map(|i| i.as_ref()));
  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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top