]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error[E0382]: use of moved value: `a[..]` |
dfeec247 | 2 | --> $DIR/borrowck-move-out-from-array.rs:10:14 |
b7449926 | 3 | | |
60c5eb7d XL |
4 | LL | let [_, _, _x] = a; |
5 | | -- value moved here | |
532ac7d7 | 6 | LL | let [.., _y] = a; |
b7449926 XL |
7 | | ^^ value used here after move |
8 | | | |
60c5eb7d | 9 | = note: move occurs because `a[..]` has type `(std::string::String, std::string::String)`, which does not implement the `Copy` trait |
b7449926 XL |
10 | |
11 | error[E0382]: use of moved value: `a[..]` | |
dfeec247 | 12 | --> $DIR/borrowck-move-out-from-array.rs:16:14 |
b7449926 | 13 | | |
60c5eb7d XL |
14 | LL | let [_, _, (_x, _)] = a; |
15 | | -- value moved here | |
16 | LL | let [.., _y] = a; | |
17 | | ^^ value used here after partial move | |
18 | | | |
19 | = note: move occurs because `a[..].0` has type `std::string::String`, which does not implement the `Copy` trait | |
20 | ||
21 | error[E0382]: use of moved value: `a[..].0` | |
dfeec247 | 22 | --> $DIR/borrowck-move-out-from-array.rs:22:15 |
60c5eb7d XL |
23 | | |
24 | LL | let [_, _, (_x, _)] = a; | |
25 | | -- value moved here | |
26 | LL | let [.., (_y, _)] = a; | |
27 | | ^^ value used here after move | |
28 | | | |
29 | = note: move occurs because `a[..].0` has type `std::string::String`, which does not implement the `Copy` trait | |
30 | ||
31 | error[E0382]: use of moved value: `a` | |
dfeec247 | 32 | --> $DIR/borrowck-move-out-from-array.rs:30:10 |
60c5eb7d XL |
33 | | |
34 | LL | let [_x, _, _] = a; | |
b7449926 | 35 | | -- value moved here |
60c5eb7d XL |
36 | LL | let [_y @ .., _, _] = a; |
37 | | ^^^^^^^ value used here after partial move | |
38 | | | |
39 | = note: move occurs because `a[..]` has type `(std::string::String, std::string::String)`, which does not implement the `Copy` trait | |
40 | ||
41 | error[E0382]: use of moved value: `a` | |
dfeec247 | 42 | --> $DIR/borrowck-move-out-from-array.rs:36:16 |
60c5eb7d XL |
43 | | |
44 | LL | let [.., _x] = a; | |
45 | | -- value moved here | |
46 | LL | let [_, _, _y @ ..] = a; | |
47 | | ^^^^^^^ value used here after partial move | |
48 | | | |
49 | = note: move occurs because `a[..]` has type `(std::string::String, std::string::String)`, which does not implement the `Copy` trait | |
50 | ||
51 | error[E0382]: use of moved value: `a` | |
dfeec247 | 52 | --> $DIR/borrowck-move-out-from-array.rs:42:10 |
60c5eb7d XL |
53 | | |
54 | LL | let [(_x, _), _, _] = a; | |
55 | | -- value moved here | |
56 | LL | let [_y @ .., _, _] = a; | |
57 | | ^^^^^^^ value used here after partial move | |
58 | | | |
59 | = note: move occurs because `a[..].0` has type `std::string::String`, which does not implement the `Copy` trait | |
60 | ||
61 | error[E0382]: use of moved value: `a` | |
dfeec247 | 62 | --> $DIR/borrowck-move-out-from-array.rs:48:16 |
60c5eb7d XL |
63 | | |
64 | LL | let [.., (_x, _)] = a; | |
65 | | -- value moved here | |
66 | LL | let [_, _, _y @ ..] = a; | |
67 | | ^^^^^^^ value used here after partial move | |
68 | | | |
69 | = note: move occurs because `a[..].0` has type `std::string::String`, which does not implement the `Copy` trait | |
70 | ||
71 | error[E0382]: use of moved value: `a[..].0` | |
dfeec247 | 72 | --> $DIR/borrowck-move-out-from-array.rs:54:11 |
60c5eb7d XL |
73 | | |
74 | LL | let [_y @ .., _, _] = a; | |
75 | | ------- value moved here | |
76 | LL | let [(_x, _), _, _] = a; | |
77 | | ^^ value used here after move | |
78 | | | |
79 | = note: move occurs because `a[..]` has type `(std::string::String, std::string::String)`, which does not implement the `Copy` trait | |
80 | ||
81 | error[E0382]: use of moved value: `a[..].0` | |
dfeec247 | 82 | --> $DIR/borrowck-move-out-from-array.rs:60:15 |
60c5eb7d XL |
83 | | |
84 | LL | let [_, _, _y @ ..] = a; | |
85 | | ------- value moved here | |
86 | LL | let [.., (_x, _)] = a; | |
87 | | ^^ value used here after move | |
88 | | | |
89 | = note: move occurs because `a[..]` has type `(std::string::String, std::string::String)`, which does not implement the `Copy` trait | |
90 | ||
91 | error[E0382]: use of moved value: `a` | |
dfeec247 | 92 | --> $DIR/borrowck-move-out-from-array.rs:68:13 |
60c5eb7d XL |
93 | | |
94 | LL | let [x @ .., _] = a; | |
95 | | ------ value moved here | |
96 | LL | let [_, _y @ ..] = a; | |
97 | | ^^^^^^^ value used here after partial move | |
b7449926 | 98 | | |
60c5eb7d | 99 | = note: move occurs because `a[..]` has type `(std::string::String, std::string::String)`, which does not implement the `Copy` trait |
b7449926 | 100 | |
60c5eb7d | 101 | error: aborting due to 10 previous errors |
b7449926 XL |
102 | |
103 | For more information about this error, try `rustc --explain E0382`. |