]> git.lizzy.rs Git - rust.git/blob - tests/ui/borrowck/borrowck-vec-pattern-loan-from-mut.stderr
Rollup merge of #106726 - cmorin6:fix-comment-typos, r=Nilstrieb
[rust.git] / tests / ui / borrowck / borrowck-vec-pattern-loan-from-mut.stderr
1 error[E0499]: cannot borrow `v` as mutable more than once at a time
2   --> $DIR/borrowck-vec-pattern-loan-from-mut.rs:6:13
3    |
4 LL |     let vb: &mut [isize] = &mut v;
5    |                            ------ first mutable borrow occurs here
6 ...
7 LL |             v.push(tail[0] + tail[1]);
8    |             ^^^^^^^-------^^^^^^^^^^^
9    |             |      |
10    |             |      first borrow later used here
11    |             second mutable borrow occurs here
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0499`.