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
11 | -- borrow later used here
13 error[E0506]: cannot assign to `vec[_]` because it is borrowed
14 --> $DIR/borrowck-vec-pattern-nesting.rs:24:13
16 LL | &mut [ref _b @ ..] => {
17 | ----------- borrow of `vec[_]` occurs here
20 | ^^^^^^ assignment to borrowed `vec[_]` occurs here
23 | -- borrow later used here
25 error[E0508]: cannot move out of type `[std::boxed::Box<isize>]`, a non-copy slice
26 --> $DIR/borrowck-vec-pattern-nesting.rs:35:11
29 | ^^^ cannot move out of here
35 | move occurs because `_a` has type `std::boxed::Box<isize>`, which does not implement the `Copy` trait
36 help: consider removing the `&mut`
46 error[E0508]: cannot move out of type `[std::boxed::Box<isize>]`, a non-copy slice
47 --> $DIR/borrowck-vec-pattern-nesting.rs:47:13
52 | cannot move out of here
53 | move occurs because `vec[_]` has type `std::boxed::Box<isize>`, which does not implement the `Copy` trait
54 | help: consider borrowing here: `&vec[0]`
56 error[E0508]: cannot move out of type `[std::boxed::Box<isize>]`, a non-copy slice
57 --> $DIR/borrowck-vec-pattern-nesting.rs:56:11
60 | ^^^ cannot move out of here
66 | move occurs because `_b` has type `std::boxed::Box<isize>`, which does not implement the `Copy` trait
67 help: consider removing the `&mut`
74 error[E0508]: cannot move out of type `[std::boxed::Box<isize>]`, a non-copy slice
75 --> $DIR/borrowck-vec-pattern-nesting.rs:66:13
80 | cannot move out of here
81 | move occurs because `vec[_]` has type `std::boxed::Box<isize>`, which does not implement the `Copy` trait
82 | help: consider borrowing here: `&vec[0]`
84 error[E0508]: cannot move out of type `[std::boxed::Box<isize>]`, a non-copy slice
85 --> $DIR/borrowck-vec-pattern-nesting.rs:75:11
88 | ^^^ cannot move out of here
90 LL | &mut [_a, _b, _c] => {}
96 | help: consider removing the `&mut`: `[_a, _b, _c]`
98 note: move occurs because these variables have types that don't implement the `Copy` trait
99 --> $DIR/borrowck-vec-pattern-nesting.rs:78:15
101 LL | &mut [_a, _b, _c] => {}
104 error[E0508]: cannot move out of type `[std::boxed::Box<isize>]`, a non-copy slice
105 --> $DIR/borrowck-vec-pattern-nesting.rs:86:13
110 | cannot move out of here
111 | move occurs because `vec[_]` has type `std::boxed::Box<isize>`, which does not implement the `Copy` trait
112 | help: consider borrowing here: `&vec[0]`
114 error: aborting due to 8 previous errors
116 Some errors have detailed explanations: E0506, E0508.
117 For more information about an error, try `rustc --explain E0506`.