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: First Pass analysis includes:
92 --> $DIR/move_closure.rs:15:5
97 LL | | t.0.0 = "new S".into();
103 note: Capturing t[(0, 0),(0, 0)] -> MutBorrow
104 --> $DIR/move_closure.rs:18:9
106 LL | t.0.0 = "new S".into();
109 error: Min Capture analysis includes:
110 --> $DIR/move_closure.rs:15:5
115 LL | | t.0.0 = "new S".into();
121 note: Min Capture t[(0, 0),(0, 0)] -> ByValue
122 --> $DIR/move_closure.rs:18:9
124 LL | t.0.0 = "new S".into();
127 error: First Pass analysis includes:
128 --> $DIR/move_closure.rs:33:5
139 note: Capturing ref_s[Deref] -> UniqueImmBorrow
140 --> $DIR/move_closure.rs:36:9
145 error: Min Capture analysis includes:
146 --> $DIR/move_closure.rs:33:5
157 note: Min Capture ref_s[Deref] -> UniqueImmBorrow
158 --> $DIR/move_closure.rs:36:9
163 error: First Pass analysis includes:
164 --> $DIR/move_closure.rs:54:5
169 LL | | t.0.0 = "new s".into();
175 note: Capturing t[(0, 0),Deref,(0, 0)] -> UniqueImmBorrow
176 --> $DIR/move_closure.rs:57:9
178 LL | t.0.0 = "new s".into();
181 error: Min Capture analysis includes:
182 --> $DIR/move_closure.rs:54:5
187 LL | | t.0.0 = "new s".into();
193 note: Min Capture t[(0, 0),Deref,(0, 0)] -> UniqueImmBorrow
194 --> $DIR/move_closure.rs:57:9
196 LL | t.0.0 = "new s".into();
199 error: First Pass analysis includes:
200 --> $DIR/move_closure.rs:77:5
205 LL | | let _t = t.0.0;
211 note: Capturing t[(0, 0),Deref,(0, 0)] -> ImmBorrow
212 --> $DIR/move_closure.rs:80:18
217 error: Min Capture analysis includes:
218 --> $DIR/move_closure.rs:77:5
223 LL | | let _t = t.0.0;
229 note: Min Capture t[(0, 0),Deref] -> ImmBorrow
230 --> $DIR/move_closure.rs:80:18
235 error: First Pass analysis includes:
236 --> $DIR/move_closure.rs:99:5
241 LL | | let _t = t.0.0;
247 note: Capturing t[(0, 0),Deref,(0, 0)] -> ByValue
248 --> $DIR/move_closure.rs:102:18
253 error: Min Capture analysis includes:
254 --> $DIR/move_closure.rs:99:5
259 LL | | let _t = t.0.0;
265 note: Min Capture t[(0, 0)] -> ByValue
266 --> $DIR/move_closure.rs:102:18
271 error: First Pass analysis includes:
272 --> $DIR/move_closure.rs:120:5
283 note: Capturing b[Deref,(0, 0)] -> ImmBorrow
284 --> $DIR/move_closure.rs:123:18
289 error: Min Capture analysis includes:
290 --> $DIR/move_closure.rs:120:5
301 note: Min Capture b[] -> ByValue
302 --> $DIR/move_closure.rs:123:18
307 error: First Pass analysis includes:
308 --> $DIR/move_closure.rs:136:5
313 LL | | println!("{}", b.0);
319 note: Capturing b[Deref,(0, 0)] -> ImmBorrow
320 --> $DIR/move_closure.rs:139:24
322 LL | println!("{}", b.0);
325 error: Min Capture analysis includes:
326 --> $DIR/move_closure.rs:136:5
331 LL | | println!("{}", b.0);
337 note: Min Capture b[] -> ByValue
338 --> $DIR/move_closure.rs:139:24
340 LL | println!("{}", b.0);
343 error: First Pass analysis includes:
344 --> $DIR/move_closure.rs:153:5
349 LL | | println!("{}", t.1.0);
355 note: Capturing t[(1, 0),Deref,(0, 0)] -> ImmBorrow
356 --> $DIR/move_closure.rs:156:24
358 LL | println!("{}", t.1.0);
361 error: Min Capture analysis includes:
362 --> $DIR/move_closure.rs:153:5
367 LL | | println!("{}", t.1.0);
373 note: Min Capture t[(1, 0)] -> ByValue
374 --> $DIR/move_closure.rs:156:24
376 LL | println!("{}", t.1.0);
379 error: First Pass analysis includes:
380 --> $DIR/move_closure.rs:172:39
382 LL | let c = #[rustc_capture_analysis] move || box_p_foo.x += 10;
383 | ^^^^^^^^^^^^^^^^^^^^^^^^^
385 note: Capturing box_p_foo[Deref,Deref,(0, 0)] -> UniqueImmBorrow
386 --> $DIR/move_closure.rs:172:47
388 LL | let c = #[rustc_capture_analysis] move || box_p_foo.x += 10;
391 error: Min Capture analysis includes:
392 --> $DIR/move_closure.rs:172:39
394 LL | let c = #[rustc_capture_analysis] move || box_p_foo.x += 10;
395 | ^^^^^^^^^^^^^^^^^^^^^^^^^
397 note: Min Capture box_p_foo[Deref,Deref,(0, 0)] -> UniqueImmBorrow
398 --> $DIR/move_closure.rs:172:47
400 LL | let c = #[rustc_capture_analysis] move || box_p_foo.x += 10;
403 error: First Pass analysis includes:
404 --> $DIR/move_closure.rs:189:39
406 LL | let c = #[rustc_capture_analysis] move || p_foo.x += 10;
407 | ^^^^^^^^^^^^^^^^^^^^^
409 note: Capturing p_foo[Deref,Deref,(0, 0)] -> UniqueImmBorrow
410 --> $DIR/move_closure.rs:189:47
412 LL | let c = #[rustc_capture_analysis] move || p_foo.x += 10;
415 error: Min Capture analysis includes:
416 --> $DIR/move_closure.rs:189:39
418 LL | let c = #[rustc_capture_analysis] move || p_foo.x += 10;
419 | ^^^^^^^^^^^^^^^^^^^^^
421 note: Min Capture p_foo[Deref,Deref,(0, 0)] -> UniqueImmBorrow
422 --> $DIR/move_closure.rs:189:47
424 LL | let c = #[rustc_capture_analysis] move || p_foo.x += 10;
427 error: aborting due to 30 previous errors
429 For more information about this error, try `rustc --explain E0658`.