1 error[E0506]: cannot assign to `vec[..]` because it is borrowed
2 --> $DIR/borrowck-vec-pattern-nesting.rs:10:13
4 LL | [box ref _a, _, _] => {
5 | ------ borrow of `vec[..]` occurs here
8 | ^^^^^^^^^^^^^^ assignment to borrowed `vec[..]` occurs here
10 error[E0506]: cannot assign to `vec[..]` because it is borrowed
11 --> $DIR/borrowck-vec-pattern-nesting.rs:23:13
13 LL | &mut [ref _b..] => {
14 | ------ borrow of `vec[..]` occurs here
17 | ^^^^^^^^^^^^^^ assignment to borrowed `vec[..]` occurs here
19 error[E0508]: cannot move out of type `[std::boxed::Box<isize>]`, a non-copy slice
20 --> $DIR/borrowck-vec-pattern-nesting.rs:34:14
23 | ^-- hint: to prevent move, use `ref _a` or `ref mut _a`
30 | |_________^ cannot move out of here
32 error[E0508]: cannot move out of type `[std::boxed::Box<isize>]`, a non-copy slice
33 --> $DIR/borrowck-vec-pattern-nesting.rs:47:13
38 | cannot move out of here
39 | help: consider using a reference instead: `&vec[0]`
41 error[E0508]: cannot move out of type `[std::boxed::Box<isize>]`, a non-copy slice
42 --> $DIR/borrowck-vec-pattern-nesting.rs:55:14
48 | |__________--^ cannot move out of here
50 | hint: to prevent move, use `ref _b` or `ref mut _b`
52 error[E0508]: cannot move out of type `[std::boxed::Box<isize>]`, a non-copy slice
53 --> $DIR/borrowck-vec-pattern-nesting.rs:60:13
58 | cannot move out of here
59 | help: consider using a reference instead: `&vec[0]`
61 error[E0508]: cannot move out of type `[std::boxed::Box<isize>]`, a non-copy slice
62 --> $DIR/borrowck-vec-pattern-nesting.rs:68:14
64 LL | &mut [_a, _b, _c] => {}
67 | || | ...and here (use `ref _c` or `ref mut _c`)
68 | || ...and here (use `ref _b` or `ref mut _b`)
69 | |hint: to prevent move, use `ref _a` or `ref mut _a`
70 | cannot move out of here
72 error[E0508]: cannot move out of type `[std::boxed::Box<isize>]`, a non-copy slice
73 --> $DIR/borrowck-vec-pattern-nesting.rs:72:13
78 | cannot move out of here
79 | help: consider using a reference instead: `&vec[0]`
81 error: aborting due to 8 previous errors
83 Some errors have detailed explanations: E0506, E0508.
84 For more information about an error, try `rustc --explain E0506`.