1 error[E0658]: attributes on expressions are experimental
2 --> $DIR/feature-gate-capture_disjoint_fields.rs:8: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/feature-gate-capture_disjoint_fields.rs:11:5
16 LL | | println!("This uses new capture analyysis to capture s={}", s);
22 note: Capturing s[] -> ImmBorrow
23 --> $DIR/feature-gate-capture_disjoint_fields.rs:14:69
25 LL | println!("This uses new capture analyysis to capture s={}", s);
28 error: Min Capture analysis includes:
29 --> $DIR/feature-gate-capture_disjoint_fields.rs:11:5
34 LL | | println!("This uses new capture analyysis to capture s={}", s);
40 note: Min Capture s[] -> ImmBorrow
41 --> $DIR/feature-gate-capture_disjoint_fields.rs:14:69
43 LL | println!("This uses new capture analyysis to capture s={}", s);
46 error: aborting due to 3 previous errors
48 For more information about this error, try `rustc --explain E0658`.