1 error[E0508]: cannot move out of type `[D; 4]`, a non-copy array
2 --> $DIR/move-out-of-array-ref.rs:8:24
4 LL | let [_, e, _, _] = *a;
7 | | cannot move out of here
8 | | help: consider borrowing here: `&*a`
10 | move occurs because `e` has type `D`, which does not implement the `Copy` trait
12 error[E0508]: cannot move out of type `[D; 4]`, a non-copy array
13 --> $DIR/move-out-of-array-ref.rs:13:27
15 LL | let [_, s @ .. , _] = *a;
18 | | cannot move out of here
19 | | help: consider borrowing here: `&*a`
21 | move occurs because `s` has type `[D; 2]`, which does not implement the `Copy` trait
23 error[E0508]: cannot move out of type `[D; 4]`, a non-copy array
24 --> $DIR/move-out-of-array-ref.rs:18:24
26 LL | let [_, e, _, _] = *a;
29 | | cannot move out of here
30 | | help: consider borrowing here: `&*a`
32 | move occurs because `e` has type `D`, which does not implement the `Copy` trait
34 error[E0508]: cannot move out of type `[D; 4]`, a non-copy array
35 --> $DIR/move-out-of-array-ref.rs:23:27
37 LL | let [_, s @ .. , _] = *a;
40 | | cannot move out of here
41 | | help: consider borrowing here: `&*a`
43 | move occurs because `s` has type `[D; 2]`, which does not implement the `Copy` trait
45 error: aborting due to 4 previous errors
47 For more information about this error, try `rustc --explain E0508`.