“cannot borrow as mutable more than once” even after dropping the first borrow

后端 未结 0 635
天命终不由人
天命终不由人 2021-02-08 22:37

I\'ll let the reproducer code speak first:

trait Output {
    fn write(&mut self, text: &str);
}

struct DummyOut         


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