1 error[E0658]: attributes on expressions are experimental
2 --> $DIR/simple-struct-min-capture.rs:27: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 warning: the feature `capture_disjoint_fields` is incomplete and may not be safe to use and/or cause compiler crashes
11 --> $DIR/simple-struct-min-capture.rs:3:12
13 LL | #![feature(capture_disjoint_fields)]
14 | ^^^^^^^^^^^^^^^^^^^^^^^
16 = note: `#[warn(incomplete_features)]` on by default
17 = note: see issue #53488 <https://github.com/rust-lang/rust/issues/53488> for more information
19 error: First Pass analysis includes:
20 --> $DIR/simple-struct-min-capture.rs:30:5
31 note: Capturing p[(0, 0)] -> MutBorrow
32 --> $DIR/simple-struct-min-capture.rs:33:9
36 note: Capturing p[] -> ImmBorrow
37 --> $DIR/simple-struct-min-capture.rs:36:26
39 LL | println!("{:?}", p);
42 error: Min Capture analysis includes:
43 --> $DIR/simple-struct-min-capture.rs:30:5
54 note: Min Capture p[] -> MutBorrow
55 --> $DIR/simple-struct-min-capture.rs:33:9
60 error: aborting due to 3 previous errors; 1 warning emitted
62 For more information about this error, try `rustc --explain E0658`.