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:36: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:56: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;
46 error: Min Capture analysis includes:
47 --> $DIR/destructure_patterns.rs:13:5
52 LL | | let [a, b, .., e] = arr;
54 LL | | assert_eq!(e, "E");
58 note: Min Capture arr[] -> ByValue
59 --> $DIR/destructure_patterns.rs:16:29
61 LL | let [a, b, .., e] = arr;
64 error: First Pass analysis includes:
65 --> $DIR/destructure_patterns.rs:39:5
70 LL | | let Point { x: ref mut x, y: _, id: moved_id } = p;
72 LL | | println!("{}, {}", x, moved_id);
76 note: Capturing p[(0, 0)] -> MutBorrow
77 --> $DIR/destructure_patterns.rs:42:58
79 LL | let Point { x: ref mut x, y: _, id: moved_id } = p;
81 note: Capturing p[(2, 0)] -> ByValue
82 --> $DIR/destructure_patterns.rs:42:58
84 LL | let Point { x: ref mut x, y: _, id: moved_id } = p;
87 error: Min Capture analysis includes:
88 --> $DIR/destructure_patterns.rs:39:5
93 LL | | let Point { x: ref mut x, y: _, id: moved_id } = p;
95 LL | | println!("{}, {}", x, moved_id);
99 note: Min Capture p[(0, 0)] -> MutBorrow
100 --> $DIR/destructure_patterns.rs:42:58
102 LL | let Point { x: ref mut x, y: _, id: moved_id } = p;
104 note: Min Capture p[(2, 0)] -> ByValue
105 --> $DIR/destructure_patterns.rs:42:58
107 LL | let Point { x: ref mut x, y: _, id: moved_id } = p;
110 error: First Pass analysis includes:
111 --> $DIR/destructure_patterns.rs:59:5
116 LL | | let (ref mut x, ref ref_str, (moved_s, _)) = t;
118 LL | | println!("{}, {} {}", x, ref_str, moved_s);
122 note: Capturing t[(0, 0)] -> MutBorrow
123 --> $DIR/destructure_patterns.rs:62:54
125 LL | let (ref mut x, ref ref_str, (moved_s, _)) = t;
127 note: Capturing t[(1, 0)] -> ImmBorrow
128 --> $DIR/destructure_patterns.rs:62:54
130 LL | let (ref mut x, ref ref_str, (moved_s, _)) = t;
132 note: Capturing t[(2, 0),(0, 0)] -> ByValue
133 --> $DIR/destructure_patterns.rs:62:54
135 LL | let (ref mut x, ref ref_str, (moved_s, _)) = t;
138 error: Min Capture analysis includes:
139 --> $DIR/destructure_patterns.rs:59:5
144 LL | | let (ref mut x, ref ref_str, (moved_s, _)) = t;
146 LL | | println!("{}, {} {}", x, ref_str, moved_s);
150 note: Min Capture t[(0, 0)] -> MutBorrow
151 --> $DIR/destructure_patterns.rs:62:54
153 LL | let (ref mut x, ref ref_str, (moved_s, _)) = t;
155 note: Min Capture t[(1, 0)] -> ImmBorrow
156 --> $DIR/destructure_patterns.rs:62:54
158 LL | let (ref mut x, ref ref_str, (moved_s, _)) = t;
160 note: Min Capture t[(2, 0),(0, 0)] -> ByValue
161 --> $DIR/destructure_patterns.rs:62:54
163 LL | let (ref mut x, ref ref_str, (moved_s, _)) = t;
166 error: aborting due to 9 previous errors
168 For more information about this error, try `rustc --explain E0658`.