1 error[E0658]: attributes on expressions are experimental
2 --> $DIR/capture-analysis-1.rs:15: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-1.rs:18:5
16 LL | | println!("{:?}", p);
22 note: Capturing p[] -> ImmBorrow
23 --> $DIR/capture-analysis-1.rs:21:26
25 LL | println!("{:?}", p);
27 note: Capturing p[(0, 0)] -> ImmBorrow
28 --> $DIR/capture-analysis-1.rs:24:26
30 LL | println!("{:?}", p.x);
32 note: Capturing q[(0, 0)] -> ImmBorrow
33 --> $DIR/capture-analysis-1.rs:27:26
35 LL | println!("{:?}", q.x);
37 note: Capturing q[] -> ImmBorrow
38 --> $DIR/capture-analysis-1.rs:29:26
40 LL | println!("{:?}", q);
43 error: Min Capture analysis includes:
44 --> $DIR/capture-analysis-1.rs:18:5
49 LL | | println!("{:?}", p);
55 note: Min Capture p[] -> ImmBorrow
56 --> $DIR/capture-analysis-1.rs:21:26
58 LL | println!("{:?}", p);
60 note: Min Capture q[] -> ImmBorrow
61 --> $DIR/capture-analysis-1.rs:29:26
63 LL | println!("{:?}", q);
66 error: aborting due to 3 previous errors
68 For more information about this error, try `rustc --explain E0658`.