]> git.proxmox.com Git - rustc.git/blob - src/test/ui/closures/2229_closure_analysis/destructure_patterns.stderr
New upstream version 1.55.0+dfsg1
[rustc.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:36: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:56: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 error: First Pass analysis includes:
29 --> $DIR/destructure_patterns.rs:13:5
30 |
31 LL | / || {
32 LL | |
33 LL | |
34 LL | | let [a, b, .., e] = arr;
35 ... |
36 LL | | assert_eq!(e, "E");
37 LL | | };
38 | |_____^
39 |
40 note: Capturing arr[Index] -> ByValue
41 --> $DIR/destructure_patterns.rs:16:29
42 |
43 LL | let [a, b, .., e] = arr;
44 | ^^^
45
46 error: Min Capture analysis includes:
47 --> $DIR/destructure_patterns.rs:13:5
48 |
49 LL | / || {
50 LL | |
51 LL | |
52 LL | | let [a, b, .., e] = arr;
53 ... |
54 LL | | assert_eq!(e, "E");
55 LL | | };
56 | |_____^
57 |
58 note: Min Capture arr[] -> ByValue
59 --> $DIR/destructure_patterns.rs:16:29
60 |
61 LL | let [a, b, .., e] = arr;
62 | ^^^
63
64 error: First Pass analysis includes:
65 --> $DIR/destructure_patterns.rs:39:5
66 |
67 LL | / || {
68 LL | |
69 LL | |
70 LL | | let Point { x: ref mut x, y: _, id: moved_id } = p;
71 ... |
72 LL | | println!("{}, {}", x, moved_id);
73 LL | | };
74 | |_____^
75 |
76 note: Capturing p[(0, 0)] -> MutBorrow
77 --> $DIR/destructure_patterns.rs:42:58
78 |
79 LL | let Point { x: ref mut x, y: _, id: moved_id } = p;
80 | ^
81 note: Capturing p[(2, 0)] -> ByValue
82 --> $DIR/destructure_patterns.rs:42:58
83 |
84 LL | let Point { x: ref mut x, y: _, id: moved_id } = p;
85 | ^
86
87 error: Min Capture analysis includes:
88 --> $DIR/destructure_patterns.rs:39:5
89 |
90 LL | / || {
91 LL | |
92 LL | |
93 LL | | let Point { x: ref mut x, y: _, id: moved_id } = p;
94 ... |
95 LL | | println!("{}, {}", x, moved_id);
96 LL | | };
97 | |_____^
98 |
99 note: Min Capture p[(0, 0)] -> MutBorrow
100 --> $DIR/destructure_patterns.rs:42:58
101 |
102 LL | let Point { x: ref mut x, y: _, id: moved_id } = p;
103 | ^
104 note: Min Capture p[(2, 0)] -> ByValue
105 --> $DIR/destructure_patterns.rs:42:58
106 |
107 LL | let Point { x: ref mut x, y: _, id: moved_id } = p;
108 | ^
109
110 error: First Pass analysis includes:
111 --> $DIR/destructure_patterns.rs:59:5
112 |
113 LL | / || {
114 LL | |
115 LL | |
116 LL | | let (ref mut x, ref ref_str, (moved_s, _)) = t;
117 ... |
118 LL | | println!("{}, {} {}", x, ref_str, moved_s);
119 LL | | };
120 | |_____^
121 |
122 note: Capturing t[(0, 0)] -> MutBorrow
123 --> $DIR/destructure_patterns.rs:62:54
124 |
125 LL | let (ref mut x, ref ref_str, (moved_s, _)) = t;
126 | ^
127 note: Capturing t[(1, 0)] -> ImmBorrow
128 --> $DIR/destructure_patterns.rs:62:54
129 |
130 LL | let (ref mut x, ref ref_str, (moved_s, _)) = t;
131 | ^
132 note: Capturing t[(2, 0),(0, 0)] -> ByValue
133 --> $DIR/destructure_patterns.rs:62:54
134 |
135 LL | let (ref mut x, ref ref_str, (moved_s, _)) = t;
136 | ^
137
138 error: Min Capture analysis includes:
139 --> $DIR/destructure_patterns.rs:59:5
140 |
141 LL | / || {
142 LL | |
143 LL | |
144 LL | | let (ref mut x, ref ref_str, (moved_s, _)) = t;
145 ... |
146 LL | | println!("{}, {} {}", x, ref_str, moved_s);
147 LL | | };
148 | |_____^
149 |
150 note: Min Capture t[(0, 0)] -> MutBorrow
151 --> $DIR/destructure_patterns.rs:62:54
152 |
153 LL | let (ref mut x, ref ref_str, (moved_s, _)) = t;
154 | ^
155 note: Min Capture t[(1, 0)] -> ImmBorrow
156 --> $DIR/destructure_patterns.rs:62:54
157 |
158 LL | let (ref mut x, ref ref_str, (moved_s, _)) = t;
159 | ^
160 note: Min Capture t[(2, 0),(0, 0)] -> ByValue
161 --> $DIR/destructure_patterns.rs:62:54
162 |
163 LL | let (ref mut x, ref ref_str, (moved_s, _)) = t;
164 | ^
165
166 error: aborting due to 9 previous errors
167
168 For more information about this error, try `rustc --explain E0658`.