1 error[E0658]: attributes on expressions are experimental
2 --> $DIR/nested-closure.rs:19:18
4 LL | let mut c1 = #[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/nested-closure.rs:29:22
13 LL | let mut c2 = #[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: First Pass analysis includes:
20 --> $DIR/nested-closure.rs:32:9
25 note: Capturing p[(1, 0)] -> MutBorrow
26 --> $DIR/nested-closure.rs:32:12
30 note: Capturing incr[] -> ImmBorrow
31 --> $DIR/nested-closure.rs:32:19
36 error: Min Capture analysis includes:
37 --> $DIR/nested-closure.rs:32:9
42 note: Min Capture p[(1, 0)] -> MutBorrow
43 --> $DIR/nested-closure.rs:32:12
47 note: Min Capture incr[] -> ImmBorrow
48 --> $DIR/nested-closure.rs:32:19
53 error: First Pass analysis includes:
54 --> $DIR/nested-closure.rs:22:5
59 LL | | println!("{}", p.x);
65 note: Capturing p[(0, 0)] -> ImmBorrow
66 --> $DIR/nested-closure.rs:25:24
68 LL | println!("{}", p.x);
70 note: Capturing p[(1, 0)] -> MutBorrow
71 --> $DIR/nested-closure.rs:32:12
75 note: Capturing p[(1, 0)] -> ImmBorrow
76 --> $DIR/nested-closure.rs:42:24
78 LL | println!("{}", p.y);
81 error: Min Capture analysis includes:
82 --> $DIR/nested-closure.rs:22:5
87 LL | | println!("{}", p.x);
93 note: Min Capture p[(0, 0)] -> ImmBorrow
94 --> $DIR/nested-closure.rs:25:24
96 LL | println!("{}", p.x);
98 note: Min Capture p[(1, 0)] -> MutBorrow
99 --> $DIR/nested-closure.rs:32:12
104 error: aborting due to 6 previous errors
106 For more information about this error, try `rustc --explain E0658`.