]> git.lizzy.rs Git - rust.git/blob - src/test/ui/closures/2229_closure_analysis/destructure_patterns.stderr
388cfd3da92c86190df7f95c13ea19dfcd8d077b
[rust.git] / src / test / ui / closures / 2229_closure_analysis / destructure_patterns.stderr
1 error[E0658]: attributes on expressions are experimental
2   --> $DIR/destructure_patterns.rs:10:13
3    |
4 LL |     let c = #[rustc_capture_analysis]
5    |             ^^^^^^^^^^^^^^^^^^^^^^^^^
6    |
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
9
10 error[E0658]: attributes on expressions are experimental
11   --> $DIR/destructure_patterns.rs:33:13
12    |
13 LL |     let c = #[rustc_capture_analysis]
14    |             ^^^^^^^^^^^^^^^^^^^^^^^^^
15    |
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
18
19 error[E0658]: attributes on expressions are experimental
20   --> $DIR/destructure_patterns.rs:50:13
21    |
22 LL |     let c = #[rustc_capture_analysis]
23    |             ^^^^^^^^^^^^^^^^^^^^^^^^^
24    |
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
27
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
30    |
31 LL | #![feature(capture_disjoint_fields)]
32    |            ^^^^^^^^^^^^^^^^^^^^^^^
33    |
34    = note: `#[warn(incomplete_features)]` on by default
35    = note: see issue #53488 <https://github.com/rust-lang/rust/issues/53488> for more information
36
37 error: Capturing arr[Index] -> ByValue
38   --> $DIR/destructure_patterns.rs:13:29
39    |
40 LL |         let [a, b, .., e] = arr;
41    |                             ^^^
42
43 error: Min Capture arr[] -> ByValue
44   --> $DIR/destructure_patterns.rs:13:29
45    |
46 LL |         let [a, b, .., e] = arr;
47    |                             ^^^
48
49 error: Capturing p[(0, 0)] -> MutBorrow
50   --> $DIR/destructure_patterns.rs:36:58
51    |
52 LL |         let Point { x: ref mut x, y: _, id: moved_id } = p;
53    |                                                          ^
54
55 error: Capturing p[(2, 0)] -> ByValue
56   --> $DIR/destructure_patterns.rs:36:58
57    |
58 LL |         let Point { x: ref mut x, y: _, id: moved_id } = p;
59    |                                                          ^
60
61 error: Min Capture p[(0, 0)] -> MutBorrow
62   --> $DIR/destructure_patterns.rs:36:58
63    |
64 LL |         let Point { x: ref mut x, y: _, id: moved_id } = p;
65    |                                                          ^
66
67 error: Min Capture p[(2, 0)] -> ByValue
68   --> $DIR/destructure_patterns.rs:36:58
69    |
70 LL |         let Point { x: ref mut x, y: _, id: moved_id } = p;
71    |                                                          ^
72
73 error: Capturing t[(0, 0)] -> MutBorrow
74   --> $DIR/destructure_patterns.rs:53:54
75    |
76 LL |         let (ref mut x, ref ref_str, (moved_s, _)) = t;
77    |                                                      ^
78
79 error: Capturing t[(1, 0)] -> ImmBorrow
80   --> $DIR/destructure_patterns.rs:53:54
81    |
82 LL |         let (ref mut x, ref ref_str, (moved_s, _)) = t;
83    |                                                      ^
84
85 error: Capturing t[(2, 0),(0, 0)] -> ByValue
86   --> $DIR/destructure_patterns.rs:53:54
87    |
88 LL |         let (ref mut x, ref ref_str, (moved_s, _)) = t;
89    |                                                      ^
90
91 error: Min Capture t[(0, 0)] -> MutBorrow
92   --> $DIR/destructure_patterns.rs:53:54
93    |
94 LL |         let (ref mut x, ref ref_str, (moved_s, _)) = t;
95    |                                                      ^
96
97 error: Min Capture t[(1, 0)] -> ImmBorrow
98   --> $DIR/destructure_patterns.rs:53:54
99    |
100 LL |         let (ref mut x, ref ref_str, (moved_s, _)) = t;
101    |                                                      ^
102
103 error: Min Capture t[(2, 0),(0, 0)] -> ByValue
104   --> $DIR/destructure_patterns.rs:53:54
105    |
106 LL |         let (ref mut x, ref ref_str, (moved_s, _)) = t;
107    |                                                      ^
108
109 error: aborting due to 15 previous errors; 1 warning emitted
110
111 For more information about this error, try `rustc --explain E0658`.