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