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
34 note: move occurs because `_a` has type `std::boxed::Box<isize>`, which does not implement the `Copy` trait
35 --> $DIR/borrowck-vec-pattern-nesting.rs:38:15
39 help: consider removing the `&mut`
49 error[E0508]: cannot move out of type `[std::boxed::Box<isize>]`, a non-copy slice
50 --> $DIR/borrowck-vec-pattern-nesting.rs:47:13
55 | cannot move out of here
56 | help: consider borrowing here: `&vec[0]`
58 error[E0508]: cannot move out of type `[std::boxed::Box<isize>]`, a non-copy slice
59 --> $DIR/borrowck-vec-pattern-nesting.rs:55:11
62 | ^^^ cannot move out of here
67 note: move occurs because `_b` has type `std::boxed::Box<isize>`, which does not implement the `Copy` trait
68 --> $DIR/borrowck-vec-pattern-nesting.rs:60:10
72 help: consider removing the `&mut`
79 error[E0508]: cannot move out of type `[std::boxed::Box<isize>]`, a non-copy slice
80 --> $DIR/borrowck-vec-pattern-nesting.rs:65:13
85 | cannot move out of here
86 | help: consider borrowing here: `&vec[0]`
88 error[E0508]: cannot move out of type `[std::boxed::Box<isize>]`, a non-copy slice
89 --> $DIR/borrowck-vec-pattern-nesting.rs:73:11
92 | ^^^ cannot move out of here
94 LL | &mut [_a, _b, _c] => {}
100 | help: consider removing the `&mut`: `[_a, _b, _c]`
102 note: move occurs because these variables have types that don't implement the `Copy` trait
103 --> $DIR/borrowck-vec-pattern-nesting.rs:76:15
105 LL | &mut [_a, _b, _c] => {}
108 error[E0508]: cannot move out of type `[std::boxed::Box<isize>]`, a non-copy slice
109 --> $DIR/borrowck-vec-pattern-nesting.rs:84:13
114 | cannot move out of here
115 | help: consider borrowing here: `&vec[0]`
117 error: aborting due to 8 previous errors
119 Some errors have detailed explanations: E0506, E0508.
120 For more information about an error, try `rustc --explain E0506`.