Why is this kind of Borrow not allowed?

后端 未结 0 808
隐瞒了意图╮
隐瞒了意图╮ 2021-01-24 13:39

I am a Rust newbie, struggling with why the compiler is strict here on ownership. Code simplified to focus on the confusion.

fn some_fn() {
    let mut a         


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