1 warning: the feature `unsized_locals` is incomplete and may not be safe to use and/or cause compiler crashes
2 --> $DIR/move-out-of-slice-2.rs:1:12
4 LL | #![feature(unsized_locals)]
7 = note: see issue #48055 <https://github.com/rust-lang/rust/issues/48055> for more information
8 = note: `#[warn(incomplete_features)]` on by default
10 error[E0508]: cannot move out of type `[A]`, a non-copy slice
11 --> $DIR/move-out-of-slice-2.rs:11:11
14 | ^^ cannot move out of here
20 | move occurs because `a` has type `[A]`, which does not implement the `Copy` trait
22 help: consider borrowing the pattern binding
24 LL | [ref a @ ..] => {}
27 error[E0508]: cannot move out of type `[A]`, a non-copy slice
28 --> $DIR/move-out-of-slice-2.rs:17:11
31 | ^^ cannot move out of here
33 LL | [_, _, b @ .., _] => {}
37 | move occurs because `b` has type `[A]`, which does not implement the `Copy` trait
39 help: consider borrowing the pattern binding
41 LL | [_, _, ref b @ .., _] => {}
44 error[E0508]: cannot move out of type `[C]`, a non-copy slice
45 --> $DIR/move-out-of-slice-2.rs:25:11
48 | ^^ cannot move out of here
54 | move occurs because `c` has type `[C]`, which does not implement the `Copy` trait
56 help: consider borrowing the pattern binding
58 LL | [ref c @ ..] => {}
61 error[E0508]: cannot move out of type `[C]`, a non-copy slice
62 --> $DIR/move-out-of-slice-2.rs:31:11
65 | ^^ cannot move out of here
67 LL | [_, _, d @ .., _] => {}
71 | move occurs because `d` has type `[C]`, which does not implement the `Copy` trait
73 help: consider borrowing the pattern binding
75 LL | [_, _, ref d @ .., _] => {}
78 error: aborting due to 4 previous errors; 1 warning emitted
80 For more information about this error, try `rustc --explain E0508`.