Reborrowing of mutable reference

后端 未结 0 1592
醉梦人生
醉梦人生 2020-12-28 14:48

When I wondered how a mutable reference could move into a method, all the questions began.

let a = &mut x;
a.somemethod(); // value of a should have moved         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题