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:33: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:50: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 warning: the feature `capture_disjoint_fields` is incomplete and may not be safe to use and/or cause compiler crashes
29 --> $DIR/destructure_patterns.rs:1:12
31 LL | #![feature(capture_disjoint_fields)]
32 | ^^^^^^^^^^^^^^^^^^^^^^^
34 = note: `#[warn(incomplete_features)]` on by default
35 = note: see issue #53488 <https://github.com/rust-lang/rust/issues/53488> for more information
37 error: Capturing arr[Index] -> ByValue
38 --> $DIR/destructure_patterns.rs:13:29
40 LL | let [a, b, .., e] = arr;
43 error: Min Capture arr[] -> ByValue
44 --> $DIR/destructure_patterns.rs:13:29
46 LL | let [a, b, .., e] = arr;
49 error: Capturing p[(0, 0)] -> MutBorrow
50 --> $DIR/destructure_patterns.rs:36:58
52 LL | let Point { x: ref mut x, y: _, id: moved_id } = p;
55 error: Capturing p[(2, 0)] -> ByValue
56 --> $DIR/destructure_patterns.rs:36:58
58 LL | let Point { x: ref mut x, y: _, id: moved_id } = p;
61 error: Min Capture p[(0, 0)] -> MutBorrow
62 --> $DIR/destructure_patterns.rs:36:58
64 LL | let Point { x: ref mut x, y: _, id: moved_id } = p;
67 error: Min Capture p[(2, 0)] -> ByValue
68 --> $DIR/destructure_patterns.rs:36:58
70 LL | let Point { x: ref mut x, y: _, id: moved_id } = p;
73 error: Capturing t[(0, 0)] -> MutBorrow
74 --> $DIR/destructure_patterns.rs:53:54
76 LL | let (ref mut x, ref ref_str, (moved_s, _)) = t;
79 error: Capturing t[(1, 0)] -> ImmBorrow
80 --> $DIR/destructure_patterns.rs:53:54
82 LL | let (ref mut x, ref ref_str, (moved_s, _)) = t;
85 error: Capturing t[(2, 0),(0, 0)] -> ByValue
86 --> $DIR/destructure_patterns.rs:53:54
88 LL | let (ref mut x, ref ref_str, (moved_s, _)) = t;
91 error: Min Capture t[(0, 0)] -> MutBorrow
92 --> $DIR/destructure_patterns.rs:53:54
94 LL | let (ref mut x, ref ref_str, (moved_s, _)) = t;
97 error: Min Capture t[(1, 0)] -> ImmBorrow
98 --> $DIR/destructure_patterns.rs:53:54
100 LL | let (ref mut x, ref ref_str, (moved_s, _)) = t;
103 error: Min Capture t[(2, 0),(0, 0)] -> ByValue
104 --> $DIR/destructure_patterns.rs:53:54
106 LL | let (ref mut x, ref ref_str, (moved_s, _)) = t;
109 error: aborting due to 15 previous errors; 1 warning emitted
111 For more information about this error, try `rustc --explain E0658`.