diff options
Diffstat (limited to 'src/test/ui/borrowck/borrowck-vec-pattern-loan-from-mut.rs')
-rw-r--r-- | src/test/ui/borrowck/borrowck-vec-pattern-loan-from-mut.rs | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/test/ui/borrowck/borrowck-vec-pattern-loan-from-mut.rs b/src/test/ui/borrowck/borrowck-vec-pattern-loan-from-mut.rs deleted file mode 100644 index 05859c95d..000000000 --- a/src/test/ui/borrowck/borrowck-vec-pattern-loan-from-mut.rs +++ /dev/null @@ -1,12 +0,0 @@ -fn a() { - let mut v = vec![1, 2, 3]; - let vb: &mut [isize] = &mut v; - match vb { - &mut [_a, ref tail @ ..] => { - v.push(tail[0] + tail[1]); //~ ERROR cannot borrow - } - _ => {} - }; -} - -fn main() {} |