Rollup merge of #31050 - apasel422:issue-31048, r=Manishearth
Closes #31048 r? @Manishearth
This commit is contained in:
commit
3f56b29715
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue