back-renamed slice_DBG_BRWD, slice_V_DBG_BRWD -> slice, slice_DBG_UNIQ -> slice_unique
This commit is contained in:
parent
8f4448837b
commit
9d9a209e9a
32 changed files with 124 additions and 124 deletions
|
|
@ -17,7 +17,7 @@ fn vec_peek<T>(v: &'r [T]) -> Option< (&'r T, &'r [T]) > {
|
|||
let vec_len = v.len();
|
||||
let head = &v[0];
|
||||
// note: this *shouldn't* be an illegal borrow! See #3888
|
||||
let tail = v.slice_V_DBG_BRWD(1, vec_len); //~ ERROR illegal borrow: borrowed value does not live long enough
|
||||
let tail = v.slice(1, vec_len); //~ ERROR illegal borrow: borrowed value does not live long enough
|
||||
Some( (head, tail) )
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue