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