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: First Pass analysis includes:
74 --> $DIR/move_closure.rs:15:5
79 LL | | t.0.0 = "new S".into();
85 note: Capturing t[(0, 0),(0, 0)] -> MutBorrow
86 --> $DIR/move_closure.rs:18:9
88 LL | t.0.0 = "new S".into();
91 error: Min Capture analysis includes:
92 --> $DIR/move_closure.rs:15:5
97 LL | | t.0.0 = "new S".into();
103 note: Min Capture t[(0, 0),(0, 0)] -> ByValue
104 --> $DIR/move_closure.rs:18:9
106 LL | t.0.0 = "new S".into();
109 error: First Pass analysis includes:
110 --> $DIR/move_closure.rs:33:5
121 note: Capturing ref_s[Deref] -> UniqueImmBorrow
122 --> $DIR/move_closure.rs:36:9
127 error: Min Capture analysis includes:
128 --> $DIR/move_closure.rs:33:5
139 note: Min Capture ref_s[Deref] -> UniqueImmBorrow
140 --> $DIR/move_closure.rs:36:9
145 error: First Pass analysis includes:
146 --> $DIR/move_closure.rs:54:5
151 LL | | t.0.0 = "new s".into();
157 note: Capturing t[(0, 0),Deref,(0, 0)] -> UniqueImmBorrow
158 --> $DIR/move_closure.rs:57:9
160 LL | t.0.0 = "new s".into();
163 error: Min Capture analysis includes:
164 --> $DIR/move_closure.rs:54:5
169 LL | | t.0.0 = "new s".into();
175 note: Min Capture t[(0, 0),Deref,(0, 0)] -> UniqueImmBorrow
176 --> $DIR/move_closure.rs:57:9
178 LL | t.0.0 = "new s".into();
181 error: First Pass analysis includes:
182 --> $DIR/move_closure.rs:77:5
187 LL | | let _t = t.0.0;
193 note: Capturing t[(0, 0),Deref] -> ImmBorrow
194 --> $DIR/move_closure.rs:80:18
199 error: Min Capture analysis includes:
200 --> $DIR/move_closure.rs:77:5
205 LL | | let _t = t.0.0;
211 note: Min Capture t[(0, 0),Deref] -> ImmBorrow
212 --> $DIR/move_closure.rs:80:18
217 error: First Pass analysis includes:
218 --> $DIR/move_closure.rs:99:5
223 LL | | let _t = t.0.0;
229 note: Capturing t[(0, 0),Deref] -> ByValue
230 --> $DIR/move_closure.rs:102:18
235 error: Min Capture analysis includes:
236 --> $DIR/move_closure.rs:99:5
241 LL | | let _t = t.0.0;
247 note: Min Capture t[(0, 0)] -> ByValue
248 --> $DIR/move_closure.rs:102:18
253 error: First Pass analysis includes:
254 --> $DIR/move_closure.rs:120:5
265 note: Capturing b[Deref,(0, 0)] -> ImmBorrow
266 --> $DIR/move_closure.rs:123:18
271 error: Min Capture analysis includes:
272 --> $DIR/move_closure.rs:120:5
283 note: Min Capture b[] -> ByValue
284 --> $DIR/move_closure.rs:123:18
289 error: First Pass analysis includes:
290 --> $DIR/move_closure.rs:136:5
295 LL | | println!("{}", b.0);
301 note: Capturing b[Deref,(0, 0)] -> ImmBorrow
302 --> $DIR/move_closure.rs:139:24
304 LL | println!("{}", b.0);
307 error: Min Capture analysis includes:
308 --> $DIR/move_closure.rs:136:5
313 LL | | println!("{}", b.0);
319 note: Min Capture b[] -> ByValue
320 --> $DIR/move_closure.rs:139:24
322 LL | println!("{}", b.0);
325 error: First Pass analysis includes:
326 --> $DIR/move_closure.rs:153:5
331 LL | | println!("{}", t.1.0);
337 note: Capturing t[(1, 0),Deref,(0, 0)] -> ImmBorrow
338 --> $DIR/move_closure.rs:156:24
340 LL | println!("{}", t.1.0);
343 error: Min Capture analysis includes:
344 --> $DIR/move_closure.rs:153:5
349 LL | | println!("{}", t.1.0);
355 note: Min Capture t[(1, 0)] -> ByValue
356 --> $DIR/move_closure.rs:156:24
358 LL | println!("{}", t.1.0);
361 error: aborting due to 24 previous errors
363 For more information about this error, try `rustc --explain E0658`.