Lucas Stadler лет назад: 11
Родитель
Сommit
7a7e9f0e92
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      rust/pointers.rs

+ 1 - 0
rust/pointers.rs

@ -46,6 +46,7 @@ mod list_with_box {
46 46
    //         Nil => Cons(x, box Nil),
47 47
    //         _ => Cons(x, box *xs)
48 48
    //                       // ^    "cannot move out of dereference of `&`-pointer"
49
    //                       // same with `ref l => Cons(x, box *l)`
49 50
    //     }
50 51
    // }
51 52