Pārlūkot izejas kodu

ref also doesn't work.

Lucas Stadler 11 gadi atpakaļ
vecāks
revīzija
7a7e9f0e92
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  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