diff options
Diffstat (limited to 'src/test/ui/borrowck/borrowck-mut-slice-of-imm-vec.rs')
-rw-r--r-- | src/test/ui/borrowck/borrowck-mut-slice-of-imm-vec.rs | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/test/ui/borrowck/borrowck-mut-slice-of-imm-vec.rs b/src/test/ui/borrowck/borrowck-mut-slice-of-imm-vec.rs deleted file mode 100644 index 8e23571ce..000000000 --- a/src/test/ui/borrowck/borrowck-mut-slice-of-imm-vec.rs +++ /dev/null @@ -1,8 +0,0 @@ -fn write(v: &mut [isize]) { - v[0] += 1; -} - -fn main() { - let v = vec![1, 2, 3]; - write(&mut v); //~ ERROR cannot borrow -} |