1 error[E0658]: attributes on expressions are experimental
2 --> $DIR/capture-enums.rs:16: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[E0658]: attributes on expressions are experimental
11 --> $DIR/capture-enums.rs:47:13
13 LL | let c = #[rustc_capture_analysis]
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/capture-enums.rs:19:5
25 LL | | if let Info::Point(_, _, str) = point {
31 note: Capturing point[] -> ImmBorrow
32 --> $DIR/capture-enums.rs:22:41
34 LL | if let Info::Point(_, _, str) = point {
36 note: Capturing point[(2, 0)] -> ByValue
37 --> $DIR/capture-enums.rs:22:41
39 LL | if let Info::Point(_, _, str) = point {
41 note: Capturing meta[] -> ImmBorrow
42 --> $DIR/capture-enums.rs:29:35
44 LL | if let Info::Meta(_, v) = meta {
46 note: Capturing meta[(1, 1)] -> ByValue
47 --> $DIR/capture-enums.rs:29:35
49 LL | if let Info::Meta(_, v) = meta {
52 error: Min Capture analysis includes:
53 --> $DIR/capture-enums.rs:19:5
58 LL | | if let Info::Point(_, _, str) = point {
64 note: Min Capture point[] -> ByValue
65 --> $DIR/capture-enums.rs:22:41
67 LL | if let Info::Point(_, _, str) = point {
69 note: Min Capture meta[] -> ByValue
70 --> $DIR/capture-enums.rs:29:35
72 LL | if let Info::Meta(_, v) = meta {
75 error: First Pass analysis includes:
76 --> $DIR/capture-enums.rs:50:5
81 LL | | let SingleVariant::Point(_, _, str) = point;
83 LL | | println!("{}", str);
87 note: Capturing point[(2, 0)] -> ByValue
88 --> $DIR/capture-enums.rs:53:47
90 LL | let SingleVariant::Point(_, _, str) = point;
93 error: Min Capture analysis includes:
94 --> $DIR/capture-enums.rs:50:5
99 LL | | let SingleVariant::Point(_, _, str) = point;
101 LL | | println!("{}", str);
105 note: Min Capture point[(2, 0)] -> ByValue
106 --> $DIR/capture-enums.rs:53:47
108 LL | let SingleVariant::Point(_, _, str) = point;
111 error: aborting due to 6 previous errors
113 For more information about this error, try `rustc --explain E0658`.