Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- use std::rc::Rc;
- use std::cell::RefCell;
- fn main() {
- let foo = Rc::new(RefCell::new(0));
- let x = foo.borrow();
- let y = foo.borrow_mut();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement