]> git.proxmox.com Git - rustc.git/blame - src/test/ui/borrowck/borrowck-move-out-from-array.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / borrowck / borrowck-move-out-from-array.stderr
CommitLineData
b7449926 1error[E0382]: use of moved value: `a[..]`
60c5eb7d 2 --> $DIR/borrowck-move-out-from-array.rs:12:14
b7449926 3 |
60c5eb7d
XL
4LL | let [_, _, _x] = a;
5 | -- value moved here
532ac7d7 6LL | 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
11error[E0382]: use of moved value: `a[..]`
60c5eb7d 12 --> $DIR/borrowck-move-out-from-array.rs:18:14
b7449926 13 |
60c5eb7d
XL
14LL | let [_, _, (_x, _)] = a;
15 | -- value moved here
16LL | 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
21error[E0382]: use of moved value: `a[..].0`
22 --> $DIR/borrowck-move-out-from-array.rs:24:15
23 |
24LL | let [_, _, (_x, _)] = a;
25 | -- value moved here
26LL | 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
31error[E0382]: use of moved value: `a`
32 --> $DIR/borrowck-move-out-from-array.rs:32:10
33 |
34LL | let [_x, _, _] = a;
b7449926 35 | -- value moved here
60c5eb7d
XL
36LL | 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
41error[E0382]: use of moved value: `a`
42 --> $DIR/borrowck-move-out-from-array.rs:38:16
43 |
44LL | let [.., _x] = a;
45 | -- value moved here
46LL | 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
51error[E0382]: use of moved value: `a`
52 --> $DIR/borrowck-move-out-from-array.rs:44:10
53 |
54LL | let [(_x, _), _, _] = a;
55 | -- value moved here
56LL | 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
61error[E0382]: use of moved value: `a`
62 --> $DIR/borrowck-move-out-from-array.rs:50:16
63 |
64LL | let [.., (_x, _)] = a;
65 | -- value moved here
66LL | 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
71error[E0382]: use of moved value: `a[..].0`
72 --> $DIR/borrowck-move-out-from-array.rs:56:11
73 |
74LL | let [_y @ .., _, _] = a;
75 | ------- value moved here
76LL | 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
81error[E0382]: use of moved value: `a[..].0`
82 --> $DIR/borrowck-move-out-from-array.rs:62:15
83 |
84LL | let [_, _, _y @ ..] = a;
85 | ------- value moved here
86LL | 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
91error[E0382]: use of moved value: `a`
92 --> $DIR/borrowck-move-out-from-array.rs:70:13
93 |
94LL | let [x @ .., _] = a;
95 | ------ value moved here
96LL | 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 101error: aborting due to 10 previous errors
b7449926
XL
102
103For more information about this error, try `rustc --explain E0382`.