mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-22 20:03:37 +00:00
Rollup merge of #31050 - apasel422:issue-31048, r=Manishearth
Closes #31048 r? @Manishearth
This commit is contained in:
commit
3f56b29715
@ -124,7 +124,7 @@ fn main() {
|
||||
let mut x = Rc::new(RefCell::new(MyStruct{ s: 5u32 }));
|
||||
let y = x.clone();
|
||||
x.borrow_mut().s = 6;
|
||||
println!("{}", x.borrow.s);
|
||||
println!("{}", x.borrow().s);
|
||||
}
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user