First mutable borrow should be out of scope but compiler sees two mutable borrows in the same scope

后端 未结 0 358
醉话见心
醉话见心 2020-12-22 15:23

Here\'s a minimal example:

use crate::List::{Cons, Nil};

enum List {
    Cons(i32, Box),
    Nil
}

stru         


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