1 error[E0658]: attributes on expressions are experimental
2 --> $DIR/move_closure.rs:12:17
4 LL | let mut c = #[rustc_capture_analysis]
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^
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
10 error[E0658]: attributes on expressions are experimental
11 --> $DIR/move_closure.rs:30:17
13 LL | let mut c = #[rustc_capture_analysis]
14 | ^^^^^^^^^^^^^^^^^^^^^^^^^
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
19 error[E0658]: attributes on expressions are experimental
20 --> $DIR/move_closure.rs:51:17
22 LL | let mut c = #[rustc_capture_analysis]
23 | ^^^^^^^^^^^^^^^^^^^^^^^^^
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
28 error[E0658]: attributes on expressions are experimental
29 --> $DIR/move_closure.rs:74:17
31 LL | let mut c = #[rustc_capture_analysis]
32 | ^^^^^^^^^^^^^^^^^^^^^^^^^
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
37 error[E0658]: attributes on expressions are experimental
38 --> $DIR/move_closure.rs:96:17
40 LL | let mut c = #[rustc_capture_analysis]
41 | ^^^^^^^^^^^^^^^^^^^^^^^^^
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
46 error[E0658]: attributes on expressions are experimental
47 --> $DIR/move_closure.rs:117:13
49 LL | let c = #[rustc_capture_analysis]
50 | ^^^^^^^^^^^^^^^^^^^^^^^^^
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
55 error[E0658]: attributes on expressions are experimental
56 --> $DIR/move_closure.rs:133:13
58 LL | let c = #[rustc_capture_analysis]
59 | ^^^^^^^^^^^^^^^^^^^^^^^^^
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
64 error[E0658]: attributes on expressions are experimental
65 --> $DIR/move_closure.rs:150:13
67 LL | let c = #[rustc_capture_analysis]
68 | ^^^^^^^^^^^^^^^^^^^^^^^^^
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
73 error[E0658]: attributes on expressions are experimental
74 --> $DIR/move_closure.rs:172:13
76 LL | let c = #[rustc_capture_analysis] move || box_p_foo.x += 10;
77 | ^^^^^^^^^^^^^^^^^^^^^^^^^
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
82 error[E0658]: attributes on expressions are experimental
83 --> $DIR/move_closure.rs:189:13
85 LL | let c = #[rustc_capture_analysis] move || p_foo.x += 10;
86 | ^^^^^^^^^^^^^^^^^^^^^^^^^
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
91 error[E0658]: attributes on expressions are experimental
92 --> $DIR/move_closure.rs:202:13
94 LL | let c = #[rustc_capture_analysis] move || x;
95 | ^^^^^^^^^^^^^^^^^^^^^^^^^
97 = note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
98 = help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
100 error: First Pass analysis includes:
101 --> $DIR/move_closure.rs:202:39
103 LL | let c = #[rustc_capture_analysis] move || x;
106 note: Capturing x[] -> ImmBorrow
107 --> $DIR/move_closure.rs:202:47
109 LL | let c = #[rustc_capture_analysis] move || x;
112 error: Min Capture analysis includes:
113 --> $DIR/move_closure.rs:202:39
115 LL | let c = #[rustc_capture_analysis] move || x;
118 note: Min Capture x[] -> ByValue
119 --> $DIR/move_closure.rs:202:47
121 LL | let c = #[rustc_capture_analysis] move || x;
124 error: First Pass analysis includes:
125 --> $DIR/move_closure.rs:15:5
130 LL | | t.0.0 = "new S".into();
136 note: Capturing t[(0, 0),(0, 0)] -> MutBorrow
137 --> $DIR/move_closure.rs:18:9
139 LL | t.0.0 = "new S".into();
142 error: Min Capture analysis includes:
143 --> $DIR/move_closure.rs:15:5
148 LL | | t.0.0 = "new S".into();
154 note: Min Capture t[(0, 0),(0, 0)] -> ByValue
155 --> $DIR/move_closure.rs:18:9
157 LL | t.0.0 = "new S".into();
160 error: First Pass analysis includes:
161 --> $DIR/move_closure.rs:33:5
172 note: Capturing ref_s[Deref] -> MutBorrow
173 --> $DIR/move_closure.rs:36:9
178 error: Min Capture analysis includes:
179 --> $DIR/move_closure.rs:33:5
190 note: Min Capture ref_s[] -> ByValue
191 --> $DIR/move_closure.rs:36:9
196 error: First Pass analysis includes:
197 --> $DIR/move_closure.rs:54:5
202 LL | | t.0.0 = "new s".into();
208 note: Capturing t[(0, 0),Deref,(0, 0)] -> MutBorrow
209 --> $DIR/move_closure.rs:57:9
211 LL | t.0.0 = "new s".into();
214 error: Min Capture analysis includes:
215 --> $DIR/move_closure.rs:54:5
220 LL | | t.0.0 = "new s".into();
226 note: Min Capture t[(0, 0)] -> ByValue
227 --> $DIR/move_closure.rs:57:9
229 LL | t.0.0 = "new s".into();
232 error: First Pass analysis includes:
233 --> $DIR/move_closure.rs:77:5
238 LL | | let _t = t.0.0;
244 note: Capturing t[(0, 0),Deref,(0, 0)] -> ImmBorrow
245 --> $DIR/move_closure.rs:80:18
250 error: Min Capture analysis includes:
251 --> $DIR/move_closure.rs:77:5
256 LL | | let _t = t.0.0;
262 note: Min Capture t[(0, 0)] -> ByValue
263 --> $DIR/move_closure.rs:80:18
268 error: First Pass analysis includes:
269 --> $DIR/move_closure.rs:99:5
274 LL | | let _t = t.0.0;
280 note: Capturing t[(0, 0),Deref,(0, 0)] -> ByValue
281 --> $DIR/move_closure.rs:102:18
286 error: Min Capture analysis includes:
287 --> $DIR/move_closure.rs:99:5
292 LL | | let _t = t.0.0;
298 note: Min Capture t[(0, 0)] -> ByValue
299 --> $DIR/move_closure.rs:102:18
304 error: First Pass analysis includes:
305 --> $DIR/move_closure.rs:120:5
316 note: Capturing b[Deref,(0, 0)] -> ImmBorrow
317 --> $DIR/move_closure.rs:123:18
322 error: Min Capture analysis includes:
323 --> $DIR/move_closure.rs:120:5
334 note: Min Capture b[] -> ByValue
335 --> $DIR/move_closure.rs:123:18
340 error: First Pass analysis includes:
341 --> $DIR/move_closure.rs:136:5
346 LL | | println!("{}", b.0);
352 note: Capturing b[Deref,(0, 0)] -> ImmBorrow
353 --> $DIR/move_closure.rs:139:24
355 LL | println!("{}", b.0);
358 error: Min Capture analysis includes:
359 --> $DIR/move_closure.rs:136:5
364 LL | | println!("{}", b.0);
370 note: Min Capture b[] -> ByValue
371 --> $DIR/move_closure.rs:139:24
373 LL | println!("{}", b.0);
376 error: First Pass analysis includes:
377 --> $DIR/move_closure.rs:153:5
382 LL | | println!("{}", t.1.0);
388 note: Capturing t[(1, 0),Deref,(0, 0)] -> ImmBorrow
389 --> $DIR/move_closure.rs:156:24
391 LL | println!("{}", t.1.0);
394 error: Min Capture analysis includes:
395 --> $DIR/move_closure.rs:153:5
400 LL | | println!("{}", t.1.0);
406 note: Min Capture t[(1, 0)] -> ByValue
407 --> $DIR/move_closure.rs:156:24
409 LL | println!("{}", t.1.0);
412 error: First Pass analysis includes:
413 --> $DIR/move_closure.rs:172:39
415 LL | let c = #[rustc_capture_analysis] move || box_p_foo.x += 10;
416 | ^^^^^^^^^^^^^^^^^^^^^^^^^
418 note: Capturing box_p_foo[Deref,Deref,(0, 0)] -> MutBorrow
419 --> $DIR/move_closure.rs:172:47
421 LL | let c = #[rustc_capture_analysis] move || box_p_foo.x += 10;
424 error: Min Capture analysis includes:
425 --> $DIR/move_closure.rs:172:39
427 LL | let c = #[rustc_capture_analysis] move || box_p_foo.x += 10;
428 | ^^^^^^^^^^^^^^^^^^^^^^^^^
430 note: Min Capture box_p_foo[] -> ByValue
431 --> $DIR/move_closure.rs:172:47
433 LL | let c = #[rustc_capture_analysis] move || box_p_foo.x += 10;
436 error: First Pass analysis includes:
437 --> $DIR/move_closure.rs:189:39
439 LL | let c = #[rustc_capture_analysis] move || p_foo.x += 10;
440 | ^^^^^^^^^^^^^^^^^^^^^
442 note: Capturing p_foo[Deref,Deref,(0, 0)] -> MutBorrow
443 --> $DIR/move_closure.rs:189:47
445 LL | let c = #[rustc_capture_analysis] move || p_foo.x += 10;
448 error: Min Capture analysis includes:
449 --> $DIR/move_closure.rs:189:39
451 LL | let c = #[rustc_capture_analysis] move || p_foo.x += 10;
452 | ^^^^^^^^^^^^^^^^^^^^^
454 note: Min Capture p_foo[] -> ByValue
455 --> $DIR/move_closure.rs:189:47
457 LL | let c = #[rustc_capture_analysis] move || p_foo.x += 10;
460 error: aborting due to 33 previous errors
462 For more information about this error, try `rustc --explain E0658`.