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