fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
10.9 KiB308 linesraw
1note: External requirements
2  --> $DIR/projection-two-region-trait-bound-closure.rs:38:29
3   |
4LL |     with_signature(cell, t, |cell, t| require(cell, t));
5   |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^
6   |
7   = note: defining type: DefId(0:31 ~ projection_two_region_trait_bound_closure[317d]::no_relationships_late[0]::{{closure}}[0]) with closure substs [
8               '_#1r,
9               '_#2r,
10               T,
11               i32,
12               extern "rust-call" fn((std::cell::Cell<&'_#3r ()>, T)),
13           ]
14   = note: late-bound region is '_#4r
15   = note: number of external vids: 5
16   = note: where <T as Anything<ReClosureBound('_#1r), ReClosureBound('_#2r)>>::AssocType: '_#3r
17
18note: No external requirements
19  --> $DIR/projection-two-region-trait-bound-closure.rs:34:1
20   |
21LL | / fn no_relationships_late<'a, 'b, 'c, T>(cell: Cell<&'a ()>, t: T)
22LL | | where
23LL | |     T: Anything<'b, 'c>,
24LL | | {
25LL | |     with_signature(cell, t, |cell, t| require(cell, t));
26LL | |
27LL | | }
28   | |_^
29   |
30   = note: defining type: DefId(0:26 ~ projection_two_region_trait_bound_closure[317d]::no_relationships_late[0]) with substs [
31               '_#1r,
32               '_#2r,
33               T,
34           ]
35
36error[E0309]: the associated type `<T as Anything<'_#5r, '_#6r>>::AssocType` may not live long enough
37  --> $DIR/projection-two-region-trait-bound-closure.rs:38:29
38   |
39LL |     with_signature(cell, t, |cell, t| require(cell, t));
40   |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^
41   |
42   = help: consider adding an explicit lifetime bound `<T as Anything<'_#5r, '_#6r>>::AssocType: ReFree(DefId(0:26 ~ projection_two_region_trait_bound_closure[317d]::no_relationships_late[0]), BrNamed(crate0:DefIndex(27), 'a))`...
43
44note: External requirements
45  --> $DIR/projection-two-region-trait-bound-closure.rs:48:29
46   |
47LL |     with_signature(cell, t, |cell, t| require(cell, t));
48   |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^
49   |
50   = note: defining type: DefId(0:37 ~ projection_two_region_trait_bound_closure[317d]::no_relationships_early[0]::{{closure}}[0]) with closure substs [
51               '_#1r,
52               '_#2r,
53               '_#3r,
54               T,
55               i32,
56               extern "rust-call" fn((std::cell::Cell<&'_#4r ()>, T)),
57           ]
58   = note: number of external vids: 5
59   = note: where <T as Anything<ReClosureBound('_#2r), ReClosureBound('_#3r)>>::AssocType: '_#4r
60
61note: No external requirements
62  --> $DIR/projection-two-region-trait-bound-closure.rs:43:1
63   |
64LL | / fn no_relationships_early<'a, 'b, 'c, T>(cell: Cell<&'a ()>, t: T)
65LL | | where
66LL | |     T: Anything<'b, 'c>,
67LL | |     'a: 'a,
68...  |
69LL | |
70LL | | }
71   | |_^
72   |
73   = note: defining type: DefId(0:32 ~ projection_two_region_trait_bound_closure[317d]::no_relationships_early[0]) with substs [
74               '_#1r,
75               '_#2r,
76               '_#3r,
77               T,
78           ]
79
80error[E0309]: the associated type `<T as Anything<'_#6r, '_#7r>>::AssocType` may not live long enough
81  --> $DIR/projection-two-region-trait-bound-closure.rs:48:29
82   |
83LL |     with_signature(cell, t, |cell, t| require(cell, t));
84   |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^
85   |
86   = help: consider adding an explicit lifetime bound `<T as Anything<'_#6r, '_#7r>>::AssocType: ReEarlyBound(0, 'a)`...
87
88note: External requirements
89  --> $DIR/projection-two-region-trait-bound-closure.rs:61:29
90   |
91LL |     with_signature(cell, t, |cell, t| require(cell, t));
92   |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^
93   |
94   = note: defining type: DefId(0:43 ~ projection_two_region_trait_bound_closure[317d]::projection_outlives[0]::{{closure}}[0]) with closure substs [
95               '_#1r,
96               '_#2r,
97               '_#3r,
98               T,
99               i32,
100               extern "rust-call" fn((std::cell::Cell<&'_#4r ()>, T)),
101           ]
102   = note: number of external vids: 5
103   = note: where <T as Anything<ReClosureBound('_#2r), ReClosureBound('_#3r)>>::AssocType: '_#4r
104
105note: No external requirements
106  --> $DIR/projection-two-region-trait-bound-closure.rs:53:1
107   |
108LL | / fn projection_outlives<'a, 'b, 'c, T>(cell: Cell<&'a ()>, t: T)
109LL | | where
110LL | |     T: Anything<'b, 'c>,
111LL | |     T::AssocType: 'a,
112...  |
113LL | |     with_signature(cell, t, |cell, t| require(cell, t));
114LL | | }
115   | |_^
116   |
117   = note: defining type: DefId(0:38 ~ projection_two_region_trait_bound_closure[317d]::projection_outlives[0]) with substs [
118               '_#1r,
119               '_#2r,
120               '_#3r,
121               T,
122           ]
123
124note: External requirements
125  --> $DIR/projection-two-region-trait-bound-closure.rs:70:29
126   |
127LL |     with_signature(cell, t, |cell, t| require(cell, t));
128   |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^
129   |
130   = note: defining type: DefId(0:49 ~ projection_two_region_trait_bound_closure[317d]::elements_outlive1[0]::{{closure}}[0]) with closure substs [
131               '_#1r,
132               '_#2r,
133               '_#3r,
134               T,
135               i32,
136               extern "rust-call" fn((std::cell::Cell<&'_#4r ()>, T)),
137           ]
138   = note: number of external vids: 5
139   = note: where <T as Anything<ReClosureBound('_#2r), ReClosureBound('_#3r)>>::AssocType: '_#4r
140
141note: No external requirements
142  --> $DIR/projection-two-region-trait-bound-closure.rs:65:1
143   |
144LL | / fn elements_outlive1<'a, 'b, 'c, T>(cell: Cell<&'a ()>, t: T)
145LL | | where
146LL | |     T: Anything<'b, 'c>,
147LL | |     'b: 'a,
148LL | | {
149LL | |     with_signature(cell, t, |cell, t| require(cell, t));
150LL | | }
151   | |_^
152   |
153   = note: defining type: DefId(0:44 ~ projection_two_region_trait_bound_closure[317d]::elements_outlive1[0]) with substs [
154               '_#1r,
155               '_#2r,
156               '_#3r,
157               T,
158           ]
159
160note: External requirements
161  --> $DIR/projection-two-region-trait-bound-closure.rs:79:29
162   |
163LL |     with_signature(cell, t, |cell, t| require(cell, t));
164   |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^
165   |
166   = note: defining type: DefId(0:55 ~ projection_two_region_trait_bound_closure[317d]::elements_outlive2[0]::{{closure}}[0]) with closure substs [
167               '_#1r,
168               '_#2r,
169               '_#3r,
170               T,
171               i32,
172               extern "rust-call" fn((std::cell::Cell<&'_#4r ()>, T)),
173           ]
174   = note: number of external vids: 5
175   = note: where <T as Anything<ReClosureBound('_#2r), ReClosureBound('_#3r)>>::AssocType: '_#4r
176
177note: No external requirements
178  --> $DIR/projection-two-region-trait-bound-closure.rs:74:1
179   |
180LL | / fn elements_outlive2<'a, 'b, 'c, T>(cell: Cell<&'a ()>, t: T)
181LL | | where
182LL | |     T: Anything<'b, 'c>,
183LL | |     'c: 'a,
184LL | | {
185LL | |     with_signature(cell, t, |cell, t| require(cell, t));
186LL | | }
187   | |_^
188   |
189   = note: defining type: DefId(0:50 ~ projection_two_region_trait_bound_closure[317d]::elements_outlive2[0]) with substs [
190               '_#1r,
191               '_#2r,
192               '_#3r,
193               T,
194           ]
195
196note: External requirements
197  --> $DIR/projection-two-region-trait-bound-closure.rs:87:29
198   |
199LL |     with_signature(cell, t, |cell, t| require(cell, t));
200   |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^
201   |
202   = note: defining type: DefId(0:60 ~ projection_two_region_trait_bound_closure[317d]::two_regions[0]::{{closure}}[0]) with closure substs [
203               '_#1r,
204               T,
205               i32,
206               extern "rust-call" fn((std::cell::Cell<&'_#2r ()>, T)),
207           ]
208   = note: late-bound region is '_#3r
209   = note: number of external vids: 4
210   = note: where <T as Anything<ReClosureBound('_#1r), ReClosureBound('_#1r)>>::AssocType: '_#2r
211
212note: No external requirements
213  --> $DIR/projection-two-region-trait-bound-closure.rs:83:1
214   |
215LL | / fn two_regions<'a, 'b, T>(cell: Cell<&'a ()>, t: T)
216LL | | where
217LL | |     T: Anything<'b, 'b>,
218LL | | {
219LL | |     with_signature(cell, t, |cell, t| require(cell, t));
220LL | |
221LL | | }
222   | |_^
223   |
224   = note: defining type: DefId(0:56 ~ projection_two_region_trait_bound_closure[317d]::two_regions[0]) with substs [
225               '_#1r,
226               T,
227           ]
228
229error: lifetime may not live long enough
230  --> $DIR/projection-two-region-trait-bound-closure.rs:87:29
231   |
232LL | fn two_regions<'a, 'b, T>(cell: Cell<&'a ()>, t: T)
233   |                --  -- lifetime `'b` defined here
234   |                |
235   |                lifetime `'a` defined here
236...
237LL |     with_signature(cell, t, |cell, t| require(cell, t));
238   |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^ closure body requires that `'b` must outlive `'a`
239
240note: External requirements
241  --> $DIR/projection-two-region-trait-bound-closure.rs:97:29
242   |
243LL |     with_signature(cell, t, |cell, t| require(cell, t));
244   |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^
245   |
246   = note: defining type: DefId(0:65 ~ projection_two_region_trait_bound_closure[317d]::two_regions_outlive[0]::{{closure}}[0]) with closure substs [
247               '_#1r,
248               '_#2r,
249               T,
250               i32,
251               extern "rust-call" fn((std::cell::Cell<&'_#3r ()>, T)),
252           ]
253   = note: number of external vids: 4
254   = note: where <T as Anything<ReClosureBound('_#2r), ReClosureBound('_#2r)>>::AssocType: '_#3r
255
256note: No external requirements
257  --> $DIR/projection-two-region-trait-bound-closure.rs:92:1
258   |
259LL | / fn two_regions_outlive<'a, 'b, T>(cell: Cell<&'a ()>, t: T)
260LL | | where
261LL | |     T: Anything<'b, 'b>,
262LL | |     'b: 'a,
263LL | | {
264LL | |     with_signature(cell, t, |cell, t| require(cell, t));
265LL | | }
266   | |_^
267   |
268   = note: defining type: DefId(0:61 ~ projection_two_region_trait_bound_closure[317d]::two_regions_outlive[0]) with substs [
269               '_#1r,
270               '_#2r,
271               T,
272           ]
273
274note: External requirements
275  --> $DIR/projection-two-region-trait-bound-closure.rs:109:29
276   |
277LL |     with_signature(cell, t, |cell, t| require(cell, t));
278   |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^
279   |
280   = note: defining type: DefId(0:69 ~ projection_two_region_trait_bound_closure[317d]::one_region[0]::{{closure}}[0]) with closure substs [
281               '_#1r,
282               T,
283               i32,
284               extern "rust-call" fn((std::cell::Cell<&'_#2r ()>, T)),
285           ]
286   = note: number of external vids: 3
287   = note: where <T as Anything<ReClosureBound('_#1r), ReClosureBound('_#1r)>>::AssocType: '_#2r
288
289note: No external requirements
290  --> $DIR/projection-two-region-trait-bound-closure.rs:101:1
291   |
292LL | / fn one_region<'a, T>(cell: Cell<&'a ()>, t: T)
293LL | | where
294LL | |     T: Anything<'a, 'a>,
295LL | | {
296...  |
297LL | |     with_signature(cell, t, |cell, t| require(cell, t));
298LL | | }
299   | |_^
300   |
301   = note: defining type: DefId(0:66 ~ projection_two_region_trait_bound_closure[317d]::one_region[0]) with substs [
302               '_#1r,
303               T,
304           ]
305
306error: aborting due to 3 previous errors
307
308For more information about this error, try `rustc --explain E0309`.