]> git.lizzy.rs Git - rust.git/blob - src/test/ui/closures/2229_closure_analysis/move_closure.stderr
c8e2708feee314a3ef7f765ee1174c6604daaea6
[rust.git] / src / test / ui / closures / 2229_closure_analysis / move_closure.stderr
1 error[E0658]: attributes on expressions are experimental
2   --> $DIR/move_closure.rs:12:17
3    |
4 LL |     let mut c = #[rustc_capture_analysis]
5    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^
6    |
7    = note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
8    = help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
9
10 error[E0658]: attributes on expressions are experimental
11   --> $DIR/move_closure.rs:30:17
12    |
13 LL |     let mut c = #[rustc_capture_analysis]
14    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^
15    |
16    = note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
17    = help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
18
19 error[E0658]: attributes on expressions are experimental
20   --> $DIR/move_closure.rs:51:17
21    |
22 LL |     let mut c = #[rustc_capture_analysis]
23    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^
24    |
25    = note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
26    = help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
27
28 error[E0658]: attributes on expressions are experimental
29   --> $DIR/move_closure.rs:74:17
30    |
31 LL |     let mut c = #[rustc_capture_analysis]
32    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^
33    |
34    = note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
35    = help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
36
37 error[E0658]: attributes on expressions are experimental
38   --> $DIR/move_closure.rs:96:17
39    |
40 LL |     let mut c = #[rustc_capture_analysis]
41    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^
42    |
43    = note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
44    = help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
45
46 error[E0658]: attributes on expressions are experimental
47   --> $DIR/move_closure.rs:117:13
48    |
49 LL |     let c = #[rustc_capture_analysis]
50    |             ^^^^^^^^^^^^^^^^^^^^^^^^^
51    |
52    = note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
53    = help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
54
55 error[E0658]: attributes on expressions are experimental
56   --> $DIR/move_closure.rs:133:13
57    |
58 LL |     let c = #[rustc_capture_analysis]
59    |             ^^^^^^^^^^^^^^^^^^^^^^^^^
60    |
61    = note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
62    = help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
63
64 error[E0658]: attributes on expressions are experimental
65   --> $DIR/move_closure.rs:150:13
66    |
67 LL |     let c = #[rustc_capture_analysis]
68    |             ^^^^^^^^^^^^^^^^^^^^^^^^^
69    |
70    = note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
71    = help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
72
73 error[E0658]: attributes on expressions are experimental
74   --> $DIR/move_closure.rs:172:13
75    |
76 LL |     let c = #[rustc_capture_analysis] move || box_p_foo.x += 10;
77    |             ^^^^^^^^^^^^^^^^^^^^^^^^^
78    |
79    = note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
80    = help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
81
82 error[E0658]: attributes on expressions are experimental
83   --> $DIR/move_closure.rs:189:13
84    |
85 LL |     let c = #[rustc_capture_analysis] move || p_foo.x += 10;
86    |             ^^^^^^^^^^^^^^^^^^^^^^^^^
87    |
88    = note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
89    = help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
90
91 error: First Pass analysis includes:
92   --> $DIR/move_closure.rs:15:5
93    |
94 LL | /     move || {
95 LL | |
96 LL | |
97 LL | |         t.0.0 = "new S".into();
98 LL | |
99 LL | |
100 LL | |     };
101    | |_____^
102    |
103 note: Capturing t[(0, 0),(0, 0)] -> MutBorrow
104   --> $DIR/move_closure.rs:18:9
105    |
106 LL |         t.0.0 = "new S".into();
107    |         ^^^^^
108
109 error: Min Capture analysis includes:
110   --> $DIR/move_closure.rs:15:5
111    |
112 LL | /     move || {
113 LL | |
114 LL | |
115 LL | |         t.0.0 = "new S".into();
116 LL | |
117 LL | |
118 LL | |     };
119    | |_____^
120    |
121 note: Min Capture t[(0, 0),(0, 0)] -> ByValue
122   --> $DIR/move_closure.rs:18:9
123    |
124 LL |         t.0.0 = "new S".into();
125    |         ^^^^^
126
127 error: First Pass analysis includes:
128   --> $DIR/move_closure.rs:33:5
129    |
130 LL | /     move || {
131 LL | |
132 LL | |
133 LL | |         *ref_s += 10;
134 LL | |
135 LL | |
136 LL | |     };
137    | |_____^
138    |
139 note: Capturing ref_s[Deref] -> UniqueImmBorrow
140   --> $DIR/move_closure.rs:36:9
141    |
142 LL |         *ref_s += 10;
143    |         ^^^^^^
144
145 error: Min Capture analysis includes:
146   --> $DIR/move_closure.rs:33:5
147    |
148 LL | /     move || {
149 LL | |
150 LL | |
151 LL | |         *ref_s += 10;
152 LL | |
153 LL | |
154 LL | |     };
155    | |_____^
156    |
157 note: Min Capture ref_s[Deref] -> UniqueImmBorrow
158   --> $DIR/move_closure.rs:36:9
159    |
160 LL |         *ref_s += 10;
161    |         ^^^^^^
162
163 error: First Pass analysis includes:
164   --> $DIR/move_closure.rs:54:5
165    |
166 LL | /     move || {
167 LL | |
168 LL | |
169 LL | |         t.0.0 = "new s".into();
170 LL | |
171 LL | |
172 LL | |     };
173    | |_____^
174    |
175 note: Capturing t[(0, 0),Deref,(0, 0)] -> UniqueImmBorrow
176   --> $DIR/move_closure.rs:57:9
177    |
178 LL |         t.0.0 = "new s".into();
179    |         ^^^^^
180
181 error: Min Capture analysis includes:
182   --> $DIR/move_closure.rs:54:5
183    |
184 LL | /     move || {
185 LL | |
186 LL | |
187 LL | |         t.0.0 = "new s".into();
188 LL | |
189 LL | |
190 LL | |     };
191    | |_____^
192    |
193 note: Min Capture t[(0, 0),Deref,(0, 0)] -> UniqueImmBorrow
194   --> $DIR/move_closure.rs:57:9
195    |
196 LL |         t.0.0 = "new s".into();
197    |         ^^^^^
198
199 error: First Pass analysis includes:
200   --> $DIR/move_closure.rs:77:5
201    |
202 LL | /     move || {
203 LL | |
204 LL | |
205 LL | |         let _t = t.0.0;
206 LL | |
207 LL | |
208 LL | |     };
209    | |_____^
210    |
211 note: Capturing t[(0, 0),Deref,(0, 0)] -> ImmBorrow
212   --> $DIR/move_closure.rs:80:18
213    |
214 LL |         let _t = t.0.0;
215    |                  ^^^^^
216
217 error: Min Capture analysis includes:
218   --> $DIR/move_closure.rs:77:5
219    |
220 LL | /     move || {
221 LL | |
222 LL | |
223 LL | |         let _t = t.0.0;
224 LL | |
225 LL | |
226 LL | |     };
227    | |_____^
228    |
229 note: Min Capture t[(0, 0),Deref] -> ImmBorrow
230   --> $DIR/move_closure.rs:80:18
231    |
232 LL |         let _t = t.0.0;
233    |                  ^^^^^
234
235 error: First Pass analysis includes:
236   --> $DIR/move_closure.rs:99:5
237    |
238 LL | /     move || {
239 LL | |
240 LL | |
241 LL | |         let _t = t.0.0;
242 LL | |
243 LL | |
244 LL | |     };
245    | |_____^
246    |
247 note: Capturing t[(0, 0),Deref,(0, 0)] -> ByValue
248   --> $DIR/move_closure.rs:102:18
249    |
250 LL |         let _t = t.0.0;
251    |                  ^^^^^
252
253 error: Min Capture analysis includes:
254   --> $DIR/move_closure.rs:99:5
255    |
256 LL | /     move || {
257 LL | |
258 LL | |
259 LL | |         let _t = t.0.0;
260 LL | |
261 LL | |
262 LL | |     };
263    | |_____^
264    |
265 note: Min Capture t[(0, 0)] -> ByValue
266   --> $DIR/move_closure.rs:102:18
267    |
268 LL |         let _t = t.0.0;
269    |                  ^^^^^
270
271 error: First Pass analysis includes:
272   --> $DIR/move_closure.rs:120:5
273    |
274 LL | /     move || {
275 LL | |
276 LL | |
277 LL | |         let _t = b.0;
278 LL | |
279 LL | |
280 LL | |     };
281    | |_____^
282    |
283 note: Capturing b[Deref,(0, 0)] -> ImmBorrow
284   --> $DIR/move_closure.rs:123:18
285    |
286 LL |         let _t = b.0;
287    |                  ^^^
288
289 error: Min Capture analysis includes:
290   --> $DIR/move_closure.rs:120:5
291    |
292 LL | /     move || {
293 LL | |
294 LL | |
295 LL | |         let _t = b.0;
296 LL | |
297 LL | |
298 LL | |     };
299    | |_____^
300    |
301 note: Min Capture b[] -> ByValue
302   --> $DIR/move_closure.rs:123:18
303    |
304 LL |         let _t = b.0;
305    |                  ^^^
306
307 error: First Pass analysis includes:
308   --> $DIR/move_closure.rs:136:5
309    |
310 LL | /     move || {
311 LL | |
312 LL | |
313 LL | |         println!("{}", b.0);
314 LL | |
315 LL | |
316 LL | |     };
317    | |_____^
318    |
319 note: Capturing b[Deref,(0, 0)] -> ImmBorrow
320   --> $DIR/move_closure.rs:139:24
321    |
322 LL |         println!("{}", b.0);
323    |                        ^^^
324
325 error: Min Capture analysis includes:
326   --> $DIR/move_closure.rs:136:5
327    |
328 LL | /     move || {
329 LL | |
330 LL | |
331 LL | |         println!("{}", b.0);
332 LL | |
333 LL | |
334 LL | |     };
335    | |_____^
336    |
337 note: Min Capture b[] -> ByValue
338   --> $DIR/move_closure.rs:139:24
339    |
340 LL |         println!("{}", b.0);
341    |                        ^^^
342
343 error: First Pass analysis includes:
344   --> $DIR/move_closure.rs:153:5
345    |
346 LL | /     move || {
347 LL | |
348 LL | |
349 LL | |         println!("{}", t.1.0);
350 LL | |
351 LL | |
352 LL | |     };
353    | |_____^
354    |
355 note: Capturing t[(1, 0),Deref,(0, 0)] -> ImmBorrow
356   --> $DIR/move_closure.rs:156:24
357    |
358 LL |         println!("{}", t.1.0);
359    |                        ^^^^^
360
361 error: Min Capture analysis includes:
362   --> $DIR/move_closure.rs:153:5
363    |
364 LL | /     move || {
365 LL | |
366 LL | |
367 LL | |         println!("{}", t.1.0);
368 LL | |
369 LL | |
370 LL | |     };
371    | |_____^
372    |
373 note: Min Capture t[(1, 0)] -> ByValue
374   --> $DIR/move_closure.rs:156:24
375    |
376 LL |         println!("{}", t.1.0);
377    |                        ^^^^^
378
379 error: First Pass analysis includes:
380   --> $DIR/move_closure.rs:172:39
381    |
382 LL |     let c = #[rustc_capture_analysis] move || box_p_foo.x += 10;
383    |                                       ^^^^^^^^^^^^^^^^^^^^^^^^^
384    |
385 note: Capturing box_p_foo[Deref,Deref,(0, 0)] -> UniqueImmBorrow
386   --> $DIR/move_closure.rs:172:47
387    |
388 LL |     let c = #[rustc_capture_analysis] move || box_p_foo.x += 10;
389    |                                               ^^^^^^^^^^^
390
391 error: Min Capture analysis includes:
392   --> $DIR/move_closure.rs:172:39
393    |
394 LL |     let c = #[rustc_capture_analysis] move || box_p_foo.x += 10;
395    |                                       ^^^^^^^^^^^^^^^^^^^^^^^^^
396    |
397 note: Min Capture box_p_foo[Deref,Deref,(0, 0)] -> UniqueImmBorrow
398   --> $DIR/move_closure.rs:172:47
399    |
400 LL |     let c = #[rustc_capture_analysis] move || box_p_foo.x += 10;
401    |                                               ^^^^^^^^^^^
402
403 error: First Pass analysis includes:
404   --> $DIR/move_closure.rs:189:39
405    |
406 LL |     let c = #[rustc_capture_analysis] move || p_foo.x += 10;
407    |                                       ^^^^^^^^^^^^^^^^^^^^^
408    |
409 note: Capturing p_foo[Deref,Deref,(0, 0)] -> UniqueImmBorrow
410   --> $DIR/move_closure.rs:189:47
411    |
412 LL |     let c = #[rustc_capture_analysis] move || p_foo.x += 10;
413    |                                               ^^^^^^^
414
415 error: Min Capture analysis includes:
416   --> $DIR/move_closure.rs:189:39
417    |
418 LL |     let c = #[rustc_capture_analysis] move || p_foo.x += 10;
419    |                                       ^^^^^^^^^^^^^^^^^^^^^
420    |
421 note: Min Capture p_foo[Deref,Deref,(0, 0)] -> UniqueImmBorrow
422   --> $DIR/move_closure.rs:189:47
423    |
424 LL |     let c = #[rustc_capture_analysis] move || p_foo.x += 10;
425    |                                               ^^^^^^^
426
427 error: aborting due to 30 previous errors
428
429 For more information about this error, try `rustc --explain E0658`.