1 error[E0658]: attributes on expressions are experimental
2 --> $DIR/simple-struct-min-capture.rs:23: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: First Pass analysis includes:
11 --> $DIR/simple-struct-min-capture.rs:26:5
22 note: Capturing p[(0, 0)] -> MutBorrow
23 --> $DIR/simple-struct-min-capture.rs:29:9
27 note: Capturing p[] -> ImmBorrow
28 --> $DIR/simple-struct-min-capture.rs:32:26
30 LL | println!("{:?}", p);
33 error: Min Capture analysis includes:
34 --> $DIR/simple-struct-min-capture.rs:26:5
45 note: Min Capture p[] -> MutBorrow
46 --> $DIR/simple-struct-min-capture.rs:29:9
49 | ^^^ p[] captured as MutBorrow here
51 LL | println!("{:?}", p);
54 error: aborting due to 3 previous errors
56 For more information about this error, try `rustc --explain E0658`.