rust中的ownership, references-and-borrowing, ifetimes
We call the &T type a ‘reference’, and rather than owning the resource, it borrows ownership
error: cannot borrow `v` as mutable more than once at a time [E0499]
fn main() {
let mut v...
原创
2016-03-17 09:31:48 ·
138 阅读 ·
0 评论