1 error[E0658]: attributes on expressions are experimental
2 --> $DIR/destructure_patterns.rs:10: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/destructure_patterns.rs:38: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[E0658]: attributes on expressions are experimental
20 --> $DIR/destructure_patterns.rs:58:13
22 LL | let c = #[rustc_capture_analysis]
23 | ^^^^^^^^^^^^^^^^^^^^^^^^^
25 = note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
26 = help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
28 error: First Pass analysis includes:
29 --> $DIR/destructure_patterns.rs:13:5
34 LL | | let [a, b, .., e] = arr;
36 LL | | assert_eq!(e, "E");
40 note: Capturing arr[Index] -> ByValue
41 --> $DIR/destructure_patterns.rs:16:29
43 LL | let [a, b, .., e] = arr;
45 note: Capturing arr[Index] -> ByValue
46 --> $DIR/destructure_patterns.rs:16:29
48 LL | let [a, b, .., e] = arr;
50 note: Capturing arr[Index] -> ByValue
51 --> $DIR/destructure_patterns.rs:16:29
53 LL | let [a, b, .., e] = arr;
56 error: Min Capture analysis includes:
57 --> $DIR/destructure_patterns.rs:13:5
62 LL | | let [a, b, .., e] = arr;
64 LL | | assert_eq!(e, "E");
68 note: Min Capture arr[] -> ByValue
69 --> $DIR/destructure_patterns.rs:16:29
71 LL | let [a, b, .., e] = arr;
74 error: First Pass analysis includes:
75 --> $DIR/destructure_patterns.rs:41:5
80 LL | | let Point { x: ref mut x, y: _, id: moved_id } = p;
82 LL | | println!("{}, {}", x, moved_id);
86 note: Capturing p[(0, 0)] -> MutBorrow
87 --> $DIR/destructure_patterns.rs:44:58
89 LL | let Point { x: ref mut x, y: _, id: moved_id } = p;
91 note: Capturing p[(2, 0)] -> ByValue
92 --> $DIR/destructure_patterns.rs:44:58
94 LL | let Point { x: ref mut x, y: _, id: moved_id } = p;
97 error: Min Capture analysis includes:
98 --> $DIR/destructure_patterns.rs:41:5
103 LL | | let Point { x: ref mut x, y: _, id: moved_id } = p;
105 LL | | println!("{}, {}", x, moved_id);
109 note: Min Capture p[(0, 0)] -> MutBorrow
110 --> $DIR/destructure_patterns.rs:44:58
112 LL | let Point { x: ref mut x, y: _, id: moved_id } = p;
114 note: Min Capture p[(2, 0)] -> ByValue
115 --> $DIR/destructure_patterns.rs:44:58
117 LL | let Point { x: ref mut x, y: _, id: moved_id } = p;
120 error: First Pass analysis includes:
121 --> $DIR/destructure_patterns.rs:61:5
126 LL | | let (ref mut x, ref ref_str, (moved_s, _)) = t;
128 LL | | println!("{}, {} {}", x, ref_str, moved_s);
132 note: Capturing t[(0, 0)] -> MutBorrow
133 --> $DIR/destructure_patterns.rs:64:54
135 LL | let (ref mut x, ref ref_str, (moved_s, _)) = t;
137 note: Capturing t[(1, 0)] -> ImmBorrow
138 --> $DIR/destructure_patterns.rs:64:54
140 LL | let (ref mut x, ref ref_str, (moved_s, _)) = t;
142 note: Capturing t[(2, 0),(0, 0)] -> ByValue
143 --> $DIR/destructure_patterns.rs:64:54
145 LL | let (ref mut x, ref ref_str, (moved_s, _)) = t;
148 error: Min Capture analysis includes:
149 --> $DIR/destructure_patterns.rs:61:5
154 LL | | let (ref mut x, ref ref_str, (moved_s, _)) = t;
156 LL | | println!("{}, {} {}", x, ref_str, moved_s);
160 note: Min Capture t[(0, 0)] -> MutBorrow
161 --> $DIR/destructure_patterns.rs:64:54
163 LL | let (ref mut x, ref ref_str, (moved_s, _)) = t;
165 note: Min Capture t[(1, 0)] -> ImmBorrow
166 --> $DIR/destructure_patterns.rs:64:54
168 LL | let (ref mut x, ref ref_str, (moved_s, _)) = t;
170 note: Min Capture t[(2, 0),(0, 0)] -> ByValue
171 --> $DIR/destructure_patterns.rs:64:54
173 LL | let (ref mut x, ref ref_str, (moved_s, _)) = t;
176 error: aborting due to 9 previous errors
178 For more information about this error, try `rustc --explain E0658`.