SHARE
TWEET

Untitled

a guest Jul 21st, 2019 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. use std::rc::Rc;
  2. use std::cell::RefCell;
  3.  
  4. fn main() {
  5.     let foo = Rc::new(RefCell::new(0));
  6.    
  7.     let x = foo.borrow();
  8.     let y = foo.borrow_mut();
  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