@@ -6,7 +6,7 @@ LL | let a @ ref b = U;
6
6
| | |
7
7
| | value borrowed here after move
8
8
| value moved into `a` here
9
- | move occurs because `a` has type `main::U` which does implement the `Copy` trait
9
+ | move occurs because `a` has type `main::U` which does not implement the `Copy` trait
10
10
11
11
error: borrow of moved value
12
12
--> $DIR/borrowck-pat-by-move-and-ref-inverse.rs:31:9
@@ -17,7 +17,7 @@ LL | let a @ (mut b @ ref mut c, d @ ref e) = (U, U);
17
17
| | | value borrowed here after move
18
18
| | value borrowed here after move
19
19
| value moved into `a` here
20
- | move occurs because `a` has type `(main::U, main::U)` which does implement the `Copy` trait
20
+ | move occurs because `a` has type `(main::U, main::U)` which does not implement the `Copy` trait
21
21
22
22
error: borrow of moved value
23
23
--> $DIR/borrowck-pat-by-move-and-ref-inverse.rs:31:14
@@ -27,7 +27,7 @@ LL | let a @ (mut b @ ref mut c, d @ ref e) = (U, U);
27
27
| | |
28
28
| | value borrowed here after move
29
29
| value moved into `b` here
30
- | move occurs because `b` has type `main::U` which does implement the `Copy` trait
30
+ | move occurs because `b` has type `main::U` which does not implement the `Copy` trait
31
31
32
32
error: borrow of moved value
33
33
--> $DIR/borrowck-pat-by-move-and-ref-inverse.rs:31:33
@@ -37,7 +37,7 @@ LL | let a @ (mut b @ ref mut c, d @ ref e) = (U, U);
37
37
| | |
38
38
| | value borrowed here after move
39
39
| value moved into `d` here
40
- | move occurs because `d` has type `main::U` which does implement the `Copy` trait
40
+ | move occurs because `d` has type `main::U` which does not implement the `Copy` trait
41
41
42
42
error: borrow of moved value
43
43
--> $DIR/borrowck-pat-by-move-and-ref-inverse.rs:38:9
@@ -48,7 +48,7 @@ LL | let a @ [ref mut b, ref c] = [U, U];
48
48
| | | value borrowed here after move
49
49
| | value borrowed here after move
50
50
| value moved into `a` here
51
- | move occurs because `a` has type `[main::U; 2]` which does implement the `Copy` trait
51
+ | move occurs because `a` has type `[main::U; 2]` which does not implement the `Copy` trait
52
52
53
53
error: borrow of moved value
54
54
--> $DIR/borrowck-pat-by-move-and-ref-inverse.rs:41:9
@@ -58,7 +58,7 @@ LL | let a @ ref b = u();
58
58
| | |
59
59
| | value borrowed here after move
60
60
| value moved into `a` here
61
- | move occurs because `a` has type `main::U` which does implement the `Copy` trait
61
+ | move occurs because `a` has type `main::U` which does not implement the `Copy` trait
62
62
63
63
error: borrow of moved value
64
64
--> $DIR/borrowck-pat-by-move-and-ref-inverse.rs:44:9
@@ -69,7 +69,7 @@ LL | let a @ (mut b @ ref mut c, d @ ref e) = (u(), u());
69
69
| | | value borrowed here after move
70
70
| | value borrowed here after move
71
71
| value moved into `a` here
72
- | move occurs because `a` has type `(main::U, main::U)` which does implement the `Copy` trait
72
+ | move occurs because `a` has type `(main::U, main::U)` which does not implement the `Copy` trait
73
73
74
74
error: borrow of moved value
75
75
--> $DIR/borrowck-pat-by-move-and-ref-inverse.rs:44:14
@@ -79,7 +79,7 @@ LL | let a @ (mut b @ ref mut c, d @ ref e) = (u(), u());
79
79
| | |
80
80
| | value borrowed here after move
81
81
| value moved into `b` here
82
- | move occurs because `b` has type `main::U` which does implement the `Copy` trait
82
+ | move occurs because `b` has type `main::U` which does not implement the `Copy` trait
83
83
84
84
error: borrow of moved value
85
85
--> $DIR/borrowck-pat-by-move-and-ref-inverse.rs:44:33
@@ -89,7 +89,7 @@ LL | let a @ (mut b @ ref mut c, d @ ref e) = (u(), u());
89
89
| | |
90
90
| | value borrowed here after move
91
91
| value moved into `d` here
92
- | move occurs because `d` has type `main::U` which does implement the `Copy` trait
92
+ | move occurs because `d` has type `main::U` which does not implement the `Copy` trait
93
93
94
94
error: borrow of moved value
95
95
--> $DIR/borrowck-pat-by-move-and-ref-inverse.rs:51:9
@@ -100,7 +100,7 @@ LL | let a @ [ref mut b, ref c] = [u(), u()];
100
100
| | | value borrowed here after move
101
101
| | value borrowed here after move
102
102
| value moved into `a` here
103
- | move occurs because `a` has type `[main::U; 2]` which does implement the `Copy` trait
103
+ | move occurs because `a` has type `[main::U; 2]` which does not implement the `Copy` trait
104
104
105
105
error: borrow of moved value
106
106
--> $DIR/borrowck-pat-by-move-and-ref-inverse.rs:56:9
@@ -110,7 +110,7 @@ LL | a @ Some(ref b) => {}
110
110
| | |
111
111
| | value borrowed here after move
112
112
| value moved into `a` here
113
- | move occurs because `a` has type `std::option::Option<main::U>` which does implement the `Copy` trait
113
+ | move occurs because `a` has type `std::option::Option<main::U>` which does not implement the `Copy` trait
114
114
115
115
error: borrow of moved value
116
116
--> $DIR/borrowck-pat-by-move-and-ref-inverse.rs:61:9
@@ -121,7 +121,7 @@ LL | a @ Some((mut b @ ref mut c, d @ ref e)) => {}
121
121
| | | value borrowed here after move
122
122
| | value borrowed here after move
123
123
| value moved into `a` here
124
- | move occurs because `a` has type `std::option::Option<(main::U, main::U)>` which does implement the `Copy` trait
124
+ | move occurs because `a` has type `std::option::Option<(main::U, main::U)>` which does not implement the `Copy` trait
125
125
126
126
error: borrow of moved value
127
127
--> $DIR/borrowck-pat-by-move-and-ref-inverse.rs:61:19
@@ -131,7 +131,7 @@ LL | a @ Some((mut b @ ref mut c, d @ ref e)) => {}
131
131
| | |
132
132
| | value borrowed here after move
133
133
| value moved into `b` here
134
- | move occurs because `b` has type `main::U` which does implement the `Copy` trait
134
+ | move occurs because `b` has type `main::U` which does not implement the `Copy` trait
135
135
136
136
error: borrow of moved value
137
137
--> $DIR/borrowck-pat-by-move-and-ref-inverse.rs:61:38
@@ -141,7 +141,7 @@ LL | a @ Some((mut b @ ref mut c, d @ ref e)) => {}
141
141
| | |
142
142
| | value borrowed here after move
143
143
| value moved into `d` here
144
- | move occurs because `d` has type `main::U` which does implement the `Copy` trait
144
+ | move occurs because `d` has type `main::U` which does not implement the `Copy` trait
145
145
146
146
error: borrow of moved value
147
147
--> $DIR/borrowck-pat-by-move-and-ref-inverse.rs:71:9
@@ -152,7 +152,7 @@ LL | mut a @ Some([ref b, ref mut c]) => {}
152
152
| | | value borrowed here after move
153
153
| | value borrowed here after move
154
154
| value moved into `a` here
155
- | move occurs because `a` has type `std::option::Option<[main::U; 2]>` which does implement the `Copy` trait
155
+ | move occurs because `a` has type `std::option::Option<[main::U; 2]>` which does not implement the `Copy` trait
156
156
157
157
error: borrow of moved value
158
158
--> $DIR/borrowck-pat-by-move-and-ref-inverse.rs:77:9
@@ -162,7 +162,7 @@ LL | a @ Some(ref b) => {}
162
162
| | |
163
163
| | value borrowed here after move
164
164
| value moved into `a` here
165
- | move occurs because `a` has type `std::option::Option<main::U>` which does implement the `Copy` trait
165
+ | move occurs because `a` has type `std::option::Option<main::U>` which does not implement the `Copy` trait
166
166
167
167
error: borrow of moved value
168
168
--> $DIR/borrowck-pat-by-move-and-ref-inverse.rs:83:9
@@ -173,7 +173,7 @@ LL | a @ Some((mut b @ ref mut c, d @ ref e)) => {}
173
173
| | | value borrowed here after move
174
174
| | value borrowed here after move
175
175
| value moved into `a` here
176
- | move occurs because `a` has type `std::option::Option<(main::U, main::U)>` which does implement the `Copy` trait
176
+ | move occurs because `a` has type `std::option::Option<(main::U, main::U)>` which does not implement the `Copy` trait
177
177
178
178
error: borrow of moved value
179
179
--> $DIR/borrowck-pat-by-move-and-ref-inverse.rs:83:19
@@ -183,7 +183,7 @@ LL | a @ Some((mut b @ ref mut c, d @ ref e)) => {}
183
183
| | |
184
184
| | value borrowed here after move
185
185
| value moved into `b` here
186
- | move occurs because `b` has type `main::U` which does implement the `Copy` trait
186
+ | move occurs because `b` has type `main::U` which does not implement the `Copy` trait
187
187
188
188
error: borrow of moved value
189
189
--> $DIR/borrowck-pat-by-move-and-ref-inverse.rs:83:38
@@ -193,7 +193,7 @@ LL | a @ Some((mut b @ ref mut c, d @ ref e)) => {}
193
193
| | |
194
194
| | value borrowed here after move
195
195
| value moved into `d` here
196
- | move occurs because `d` has type `main::U` which does implement the `Copy` trait
196
+ | move occurs because `d` has type `main::U` which does not implement the `Copy` trait
197
197
198
198
error: borrow of moved value
199
199
--> $DIR/borrowck-pat-by-move-and-ref-inverse.rs:93:9
@@ -204,7 +204,7 @@ LL | mut a @ Some([ref b, ref mut c]) => {}
204
204
| | | value borrowed here after move
205
205
| | value borrowed here after move
206
206
| value moved into `a` here
207
- | move occurs because `a` has type `std::option::Option<[main::U; 2]>` which does implement the `Copy` trait
207
+ | move occurs because `a` has type `std::option::Option<[main::U; 2]>` which does not implement the `Copy` trait
208
208
209
209
error: borrow of moved value
210
210
--> $DIR/borrowck-pat-by-move-and-ref-inverse.rs:14:11
@@ -214,7 +214,7 @@ LL | fn f1(a @ ref b: U) {}
214
214
| | |
215
215
| | value borrowed here after move
216
216
| value moved into `a` here
217
- | move occurs because `a` has type `main::U` which does implement the `Copy` trait
217
+ | move occurs because `a` has type `main::U` which does not implement the `Copy` trait
218
218
219
219
error: borrow of moved value
220
220
--> $DIR/borrowck-pat-by-move-and-ref-inverse.rs:18:11
@@ -225,7 +225,7 @@ LL | fn f2(mut a @ (b @ ref c, mut d @ ref e): (U, U)) {}
225
225
| | | value borrowed here after move
226
226
| | value borrowed here after move
227
227
| value moved into `a` here
228
- | move occurs because `a` has type `(main::U, main::U)` which does implement the `Copy` trait
228
+ | move occurs because `a` has type `(main::U, main::U)` which does not implement the `Copy` trait
229
229
230
230
error: borrow of moved value
231
231
--> $DIR/borrowck-pat-by-move-and-ref-inverse.rs:18:20
@@ -235,7 +235,7 @@ LL | fn f2(mut a @ (b @ ref c, mut d @ ref e): (U, U)) {}
235
235
| | |
236
236
| | value borrowed here after move
237
237
| value moved into `b` here
238
- | move occurs because `b` has type `main::U` which does implement the `Copy` trait
238
+ | move occurs because `b` has type `main::U` which does not implement the `Copy` trait
239
239
240
240
error: borrow of moved value
241
241
--> $DIR/borrowck-pat-by-move-and-ref-inverse.rs:18:31
@@ -245,7 +245,7 @@ LL | fn f2(mut a @ (b @ ref c, mut d @ ref e): (U, U)) {}
245
245
| | |
246
246
| | value borrowed here after move
247
247
| value moved into `d` here
248
- | move occurs because `d` has type `main::U` which does implement the `Copy` trait
248
+ | move occurs because `d` has type `main::U` which does not implement the `Copy` trait
249
249
250
250
error: borrow of moved value
251
251
--> $DIR/borrowck-pat-by-move-and-ref-inverse.rs:25:11
@@ -256,7 +256,7 @@ LL | fn f3(a @ [ref mut b, ref c]: [U; 2]) {}
256
256
| | | value borrowed here after move
257
257
| | value borrowed here after move
258
258
| value moved into `a` here
259
- | move occurs because `a` has type `[main::U; 2]` which does implement the `Copy` trait
259
+ | move occurs because `a` has type `[main::U; 2]` which does not implement the `Copy` trait
260
260
261
261
error[E0382]: borrow of moved value
262
262
--> $DIR/borrowck-pat-by-move-and-ref-inverse.rs:31:22
0 commit comments