How do we have 2 mutable references to the same value existing at the same

后端 未结 0 1666
情书的邮戳
情书的邮戳 2021-01-31 05:56

I have the following code that compiles and runs without any issues -

#[derive(Debug)]
pub struct A<\'a> {
    field: &\'a mut String
}

fn main() {
            


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