]> git.lizzy.rs Git - rust.git/blob - tests/ui/closures/2229_closure_analysis/match/patterns-capture-analysis.stderr
Rollup merge of #106726 - cmorin6:fix-comment-typos, r=Nilstrieb
[rust.git] / tests / ui / closures / 2229_closure_analysis / match / patterns-capture-analysis.stderr
1 error[E0658]: attributes on expressions are experimental
2   --> $DIR/patterns-capture-analysis.rs:10:14
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/patterns-capture-analysis.rs:31:14
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/patterns-capture-analysis.rs:52:14
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[E0658]: attributes on expressions are experimental
29   --> $DIR/patterns-capture-analysis.rs:68:14
30    |
31 LL |     let c =  #[rustc_capture_analysis]
32    |              ^^^^^^^^^^^^^^^^^^^^^^^^^
33    |
34    = note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
35    = help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
36
37 error[E0658]: attributes on expressions are experimental
38   --> $DIR/patterns-capture-analysis.rs:90:14
39    |
40 LL |     let c =  #[rustc_capture_analysis]
41    |              ^^^^^^^^^^^^^^^^^^^^^^^^^
42    |
43    = note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
44    = help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
45
46 error[E0658]: attributes on expressions are experimental
47   --> $DIR/patterns-capture-analysis.rs:114:14
48    |
49 LL |     let c =  #[rustc_capture_analysis]
50    |              ^^^^^^^^^^^^^^^^^^^^^^^^^
51    |
52    = note: see issue #15701 <https://github.com/rust-lang/rust/issues/15701> for more information
53    = help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
54
55 error: First Pass analysis includes:
56   --> $DIR/patterns-capture-analysis.rs:14:5
57    |
58 LL | /     || {
59 LL | |
60 LL | |
61 LL | |         match variant {
62 ...  |
63 LL | |         }
64 LL | |     };
65    | |_____^
66    |
67 note: Capturing variant[] -> ImmBorrow
68   --> $DIR/patterns-capture-analysis.rs:17:15
69    |
70 LL |         match variant {
71    |               ^^^^^^^
72
73 error: Min Capture analysis includes:
74   --> $DIR/patterns-capture-analysis.rs:14:5
75    |
76 LL | /     || {
77 LL | |
78 LL | |
79 LL | |         match variant {
80 ...  |
81 LL | |         }
82 LL | |     };
83    | |_____^
84    |
85 note: Min Capture variant[] -> ImmBorrow
86   --> $DIR/patterns-capture-analysis.rs:17:15
87    |
88 LL |         match variant {
89    |               ^^^^^^^
90
91 error: First Pass analysis includes:
92   --> $DIR/patterns-capture-analysis.rs:34:5
93    |
94 LL | /     || {
95 LL | |
96 LL | |         match variant {
97 LL | |             _ => {}
98 LL | |         }
99 LL | |     };
100    | |_____^
101
102 error: First Pass analysis includes:
103   --> $DIR/patterns-capture-analysis.rs:55:5
104    |
105 LL | /     || {
106 LL | |
107 LL | |         match variant {
108 LL | |             SingleVariant::Points(_) => {}
109 LL | |         }
110 LL | |     };
111    | |_____^
112
113 error: First Pass analysis includes:
114   --> $DIR/patterns-capture-analysis.rs:71:5
115    |
116 LL | /     || {
117 LL | |
118 LL | |
119 LL | |         match variant {
120 ...  |
121 LL | |         }
122 LL | |     };
123    | |_____^
124    |
125 note: Capturing variant[] -> ImmBorrow
126   --> $DIR/patterns-capture-analysis.rs:74:15
127    |
128 LL |         match variant {
129    |               ^^^^^^^
130 note: Capturing variant[(0, 0)] -> ImmBorrow
131   --> $DIR/patterns-capture-analysis.rs:74:15
132    |
133 LL |         match variant {
134    |               ^^^^^^^
135
136 error: Min Capture analysis includes:
137   --> $DIR/patterns-capture-analysis.rs:71:5
138    |
139 LL | /     || {
140 LL | |
141 LL | |
142 LL | |         match variant {
143 ...  |
144 LL | |         }
145 LL | |     };
146    | |_____^
147    |
148 note: Min Capture variant[] -> ImmBorrow
149   --> $DIR/patterns-capture-analysis.rs:74:15
150    |
151 LL |         match variant {
152    |               ^^^^^^^
153
154 error: First Pass analysis includes:
155   --> $DIR/patterns-capture-analysis.rs:93:5
156    |
157 LL | /     || {
158 LL | |
159 LL | |         match array {
160 LL | |             [_,_,_] => {}
161 LL | |         }
162 LL | |     };
163    | |_____^
164
165 error: First Pass analysis includes:
166   --> $DIR/patterns-capture-analysis.rs:117:5
167    |
168 LL | /     || {
169 LL | |
170 LL | |
171 LL | |         match variant {
172 ...  |
173 LL | |         }
174 LL | |     };
175    | |_____^
176    |
177 note: Capturing variant[] -> ImmBorrow
178   --> $DIR/patterns-capture-analysis.rs:120:15
179    |
180 LL |         match variant {
181    |               ^^^^^^^
182
183 error: Min Capture analysis includes:
184   --> $DIR/patterns-capture-analysis.rs:117:5
185    |
186 LL | /     || {
187 LL | |
188 LL | |
189 LL | |         match variant {
190 ...  |
191 LL | |         }
192 LL | |     };
193    | |_____^
194    |
195 note: Min Capture variant[] -> ImmBorrow
196   --> $DIR/patterns-capture-analysis.rs:120:15
197    |
198 LL |         match variant {
199    |               ^^^^^^^
200
201 error: aborting due to 15 previous errors
202
203 For more information about this error, try `rustc --explain E0658`.