fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
1.6 KiB51 linesraw
1error[E0508]: cannot move out of type `[A]`, a non-copy slice
2  --> $DIR/move-out-of-slice-2.rs:9:11
3   |
4LL |     match *a {
5   |           ^^ cannot move out of here
6LL |
7LL |         [a @ ..] => {},
8   |          ------
9   |          |
10   |          data moved here
11   |          move occurs because `a` has type `[A]`, which does not implement the `Copy` trait
12
13error[E0508]: cannot move out of type `[A]`, a non-copy slice
14  --> $DIR/move-out-of-slice-2.rs:15:11
15   |
16LL |     match *b {
17   |           ^^ cannot move out of here
18LL |
19LL |         [_, _, b @ .., _] => {},
20   |                ------
21   |                |
22   |                data moved here
23   |                move occurs because `b` has type `[A]`, which does not implement the `Copy` trait
24
25error[E0508]: cannot move out of type `[C]`, a non-copy slice
26  --> $DIR/move-out-of-slice-2.rs:23:11
27   |
28LL |     match *c {
29   |           ^^ cannot move out of here
30LL |
31LL |         [c @ ..] => {},
32   |          ------
33   |          |
34   |          data moved here
35   |          move occurs because `c` has type `[C]`, which does not implement the `Copy` trait
36
37error[E0508]: cannot move out of type `[C]`, a non-copy slice
38  --> $DIR/move-out-of-slice-2.rs:29:11
39   |
40LL |     match *d {
41   |           ^^ cannot move out of here
42LL |
43LL |         [_, _, d @ .., _] => {},
44   |                ------
45   |                |
46   |                data moved here
47   |                move occurs because `d` has type `[C]`, which does not implement the `Copy` trait
48
49error: aborting due to 4 previous errors
50
51For more information about this error, try `rustc --explain E0508`.