1 error[E0658]: attributes on expressions are experimental
2 --> $DIR/issue-88476.rs:20:13
4 LL | let x = #[rustc_capture_analysis] move || {
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[E0658]: attributes on expressions are experimental
11 --> $DIR/issue-88476.rs:47:13
13 LL | let c = #[rustc_capture_analysis] move || {
14 | ^^^^^^^^^^^^^^^^^^^^^^^^^
16 = note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
17 = help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
19 error: First Pass analysis includes:
20 --> $DIR/issue-88476.rs:20:39
22 LL | let x = #[rustc_capture_analysis] move || {
23 | _______________________________________^
32 note: Capturing f[(0, 0)] -> ImmBorrow
33 --> $DIR/issue-88476.rs:25:26
35 LL | println!("{:?}", f.0);
38 error: Min Capture analysis includes:
39 --> $DIR/issue-88476.rs:20:39
41 LL | let x = #[rustc_capture_analysis] move || {
42 | _______________________________________^
51 note: Min Capture f[] -> ByValue
52 --> $DIR/issue-88476.rs:25:26
54 LL | println!("{:?}", f.0);
57 error: First Pass analysis includes:
58 --> $DIR/issue-88476.rs:47:39
60 LL | let c = #[rustc_capture_analysis] move || {
61 | _______________________________________^
70 note: Capturing character[(0, 0)] -> ImmBorrow
71 --> $DIR/issue-88476.rs:52:24
73 LL | println!("{}", character.hp)
76 error: Min Capture analysis includes:
77 --> $DIR/issue-88476.rs:47:39
79 LL | let c = #[rustc_capture_analysis] move || {
80 | _______________________________________^
89 note: Min Capture character[(0, 0)] -> ByValue
90 --> $DIR/issue-88476.rs:52:24
92 LL | println!("{}", character.hp)
95 error: aborting due to 6 previous errors
97 For more information about this error, try `rustc --explain E0658`.