1 error[E0658]: attributes on expressions are experimental
2 --> $DIR/by_value.rs:18: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/by_value.rs:21:5
22 note: Capturing t[(0, 0),Deref,(0, 0)] -> ImmBorrow
23 --> $DIR/by_value.rs:24:17
27 note: Capturing t[(0, 0)] -> ByValue
28 --> $DIR/by_value.rs:24:17
32 note: Capturing t[(1, 0)] -> ImmBorrow
33 --> $DIR/by_value.rs:28:29
35 LL | println!("{} {:?}", t.1, p);
38 error: Min Capture analysis includes:
39 --> $DIR/by_value.rs:21:5
50 note: Min Capture t[(0, 0)] -> ByValue
51 --> $DIR/by_value.rs:24:17
55 note: Min Capture t[(1, 0)] -> ImmBorrow
56 --> $DIR/by_value.rs:28:29
58 LL | println!("{} {:?}", t.1, p);
61 error: aborting due to 3 previous errors
63 For more information about this error, try `rustc --explain E0658`.