1 error[E0658]: attributes on expressions are experimental
2 --> $DIR/preserve_field_drop_order.rs:23:13
4 LL | let 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/preserve_field_drop_order.rs:49:13
13 LL | let 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/preserve_field_drop_order.rs:75:13
22 LL | let 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: First Pass analysis includes:
29 --> $DIR/preserve_field_drop_order.rs:26:5
34 LL | | println!("{:?}", a.0);
40 note: Capturing a[(0, 0)] -> ImmBorrow
41 --> $DIR/preserve_field_drop_order.rs:29:26
43 LL | println!("{:?}", a.0);
45 note: Capturing a[(1, 0)] -> ImmBorrow
46 --> $DIR/preserve_field_drop_order.rs:32:26
48 LL | println!("{:?}", a.1);
50 note: Capturing b[(0, 0)] -> ImmBorrow
51 --> $DIR/preserve_field_drop_order.rs:36:26
53 LL | println!("{:?}", b.0);
55 note: Capturing b[(1, 0)] -> ImmBorrow
56 --> $DIR/preserve_field_drop_order.rs:39:26
58 LL | println!("{:?}", b.1);
61 error: Min Capture analysis includes:
62 --> $DIR/preserve_field_drop_order.rs:26:5
67 LL | | println!("{:?}", a.0);
73 note: Min Capture a[(0, 0)] -> ImmBorrow
74 --> $DIR/preserve_field_drop_order.rs:29:26
76 LL | println!("{:?}", a.0);
78 note: Min Capture a[(1, 0)] -> ImmBorrow
79 --> $DIR/preserve_field_drop_order.rs:32:26
81 LL | println!("{:?}", a.1);
83 note: Min Capture b[(0, 0)] -> ImmBorrow
84 --> $DIR/preserve_field_drop_order.rs:36:26
86 LL | println!("{:?}", b.0);
88 note: Min Capture b[(1, 0)] -> ImmBorrow
89 --> $DIR/preserve_field_drop_order.rs:39:26
91 LL | println!("{:?}", b.1);
94 error: First Pass analysis includes:
95 --> $DIR/preserve_field_drop_order.rs:52:5
100 LL | | println!("{:?}", a.1);
106 note: Capturing a[(1, 0)] -> ImmBorrow
107 --> $DIR/preserve_field_drop_order.rs:55:26
109 LL | println!("{:?}", a.1);
111 note: Capturing a[(0, 0)] -> ImmBorrow
112 --> $DIR/preserve_field_drop_order.rs:58:26
114 LL | println!("{:?}", a.0);
116 note: Capturing b[(1, 0)] -> ImmBorrow
117 --> $DIR/preserve_field_drop_order.rs:62:26
119 LL | println!("{:?}", b.1);
121 note: Capturing b[(0, 0)] -> ImmBorrow
122 --> $DIR/preserve_field_drop_order.rs:65:26
124 LL | println!("{:?}", b.0);
127 error: Min Capture analysis includes:
128 --> $DIR/preserve_field_drop_order.rs:52:5
133 LL | | println!("{:?}", a.1);
139 note: Min Capture a[(0, 0)] -> ImmBorrow
140 --> $DIR/preserve_field_drop_order.rs:58:26
142 LL | println!("{:?}", a.0);
144 note: Min Capture a[(1, 0)] -> ImmBorrow
145 --> $DIR/preserve_field_drop_order.rs:55:26
147 LL | println!("{:?}", a.1);
149 note: Min Capture b[(0, 0)] -> ImmBorrow
150 --> $DIR/preserve_field_drop_order.rs:65:26
152 LL | println!("{:?}", b.0);
154 note: Min Capture b[(1, 0)] -> ImmBorrow
155 --> $DIR/preserve_field_drop_order.rs:62:26
157 LL | println!("{:?}", b.1);
160 error: First Pass analysis includes:
161 --> $DIR/preserve_field_drop_order.rs:78:5
166 LL | | println!("{:?}", b.1);
172 note: Capturing b[(1, 0)] -> ImmBorrow
173 --> $DIR/preserve_field_drop_order.rs:81:26
175 LL | println!("{:?}", b.1);
177 note: Capturing a[(1, 0)] -> ImmBorrow
178 --> $DIR/preserve_field_drop_order.rs:84:26
180 LL | println!("{:?}", a.1);
182 note: Capturing a[(0, 0)] -> ImmBorrow
183 --> $DIR/preserve_field_drop_order.rs:87:26
185 LL | println!("{:?}", a.0);
187 note: Capturing b[(0, 0)] -> ImmBorrow
188 --> $DIR/preserve_field_drop_order.rs:91:26
190 LL | println!("{:?}", b.0);
193 error: Min Capture analysis includes:
194 --> $DIR/preserve_field_drop_order.rs:78:5
199 LL | | println!("{:?}", b.1);
205 note: Min Capture b[(0, 0)] -> ImmBorrow
206 --> $DIR/preserve_field_drop_order.rs:91:26
208 LL | println!("{:?}", b.0);
210 note: Min Capture b[(1, 0)] -> ImmBorrow
211 --> $DIR/preserve_field_drop_order.rs:81:26
213 LL | println!("{:?}", b.1);
215 note: Min Capture a[(0, 0)] -> ImmBorrow
216 --> $DIR/preserve_field_drop_order.rs:87:26
218 LL | println!("{:?}", a.0);
220 note: Min Capture a[(1, 0)] -> ImmBorrow
221 --> $DIR/preserve_field_drop_order.rs:84:26
223 LL | println!("{:?}", a.1);
226 error: aborting due to 9 previous errors
228 For more information about this error, try `rustc --explain E0658`.