浏览代码

ref also doesn't work.

Lucas Stadler 11 年之前
父节点
当前提交
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