use std::cell::RefCell; let cell = RefCell::new(5); { let mut borrow = cell.borrow_mut(); *borrow += 1; } println!("{}", cell.borrow()); // 6