Advertisement
Guest User

Untitled

a guest
Jul 21st, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.15 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement