1 note: external requirements
2 --> $DIR/projection-two-region-trait-bound-closure.rs:38:29
4 LL | with_signature(cell, t, |cell, t| require(cell, t));
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
7 = note: defining type: no_relationships_late::<'_#1r, '_#2r, T>::{closure#0} with closure substs [
9 extern "rust-call" fn((std::cell::Cell<&'_#3r ()>, T)),
12 = note: late-bound region is '_#4r
13 = note: number of external vids: 5
14 = note: where <T as Anything<ReEarlyBound(0, 'b), ReEarlyBound(1, 'c)>>::AssocType: '_#3r
16 note: no external requirements
17 --> $DIR/projection-two-region-trait-bound-closure.rs:34:1
19 LL | / fn no_relationships_late<'a, 'b, 'c, T>(cell: Cell<&'a ()>, t: T)
21 LL | | T: Anything<'b, 'c>,
23 LL | | with_signature(cell, t, |cell, t| require(cell, t));
28 = note: defining type: no_relationships_late::<'_#1r, '_#2r, T>
30 error[E0309]: the associated type `<T as Anything<ReEarlyBound(0, 'b), ReEarlyBound(1, 'c)>>::AssocType` may not live long enough
31 --> $DIR/projection-two-region-trait-bound-closure.rs:38:29
33 LL | with_signature(cell, t, |cell, t| require(cell, t));
34 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
36 = help: consider adding an explicit lifetime bound `<T as Anything<ReEarlyBound(0, 'b), ReEarlyBound(1, 'c)>>::AssocType: 'a`...
37 = note: ...so that the type `<T as Anything<ReEarlyBound(0, 'b), ReEarlyBound(1, 'c)>>::AssocType` will meet its required lifetime bounds
39 note: external requirements
40 --> $DIR/projection-two-region-trait-bound-closure.rs:48:29
42 LL | with_signature(cell, t, |cell, t| require(cell, t));
43 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
45 = note: defining type: no_relationships_early::<'_#1r, '_#2r, '_#3r, T>::{closure#0} with closure substs [
47 extern "rust-call" fn((std::cell::Cell<&'_#4r ()>, T)),
50 = note: number of external vids: 5
51 = note: where <T as Anything<ReEarlyBound(1, 'b), ReEarlyBound(2, 'c)>>::AssocType: '_#4r
53 note: no external requirements
54 --> $DIR/projection-two-region-trait-bound-closure.rs:43:1
56 LL | / fn no_relationships_early<'a, 'b, 'c, T>(cell: Cell<&'a ()>, t: T)
58 LL | | T: Anything<'b, 'c>,
65 = note: defining type: no_relationships_early::<'_#1r, '_#2r, '_#3r, T>
67 error[E0309]: the associated type `<T as Anything<ReEarlyBound(1, 'b), ReEarlyBound(2, 'c)>>::AssocType` may not live long enough
68 --> $DIR/projection-two-region-trait-bound-closure.rs:48:29
70 LL | with_signature(cell, t, |cell, t| require(cell, t));
71 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
73 = help: consider adding an explicit lifetime bound `<T as Anything<ReEarlyBound(1, 'b), ReEarlyBound(2, 'c)>>::AssocType: 'a`...
74 = note: ...so that the type `<T as Anything<ReEarlyBound(1, 'b), ReEarlyBound(2, 'c)>>::AssocType` will meet its required lifetime bounds
76 note: external requirements
77 --> $DIR/projection-two-region-trait-bound-closure.rs:61:29
79 LL | with_signature(cell, t, |cell, t| require(cell, t));
80 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
82 = note: defining type: projection_outlives::<'_#1r, '_#2r, '_#3r, T>::{closure#0} with closure substs [
84 extern "rust-call" fn((std::cell::Cell<&'_#4r ()>, T)),
87 = note: number of external vids: 5
88 = note: where <T as Anything<ReEarlyBound(1, 'b), ReEarlyBound(2, 'c)>>::AssocType: '_#4r
90 note: no external requirements
91 --> $DIR/projection-two-region-trait-bound-closure.rs:53:1
93 LL | / fn projection_outlives<'a, 'b, 'c, T>(cell: Cell<&'a ()>, t: T)
95 LL | | T: Anything<'b, 'c>,
96 LL | | T::AssocType: 'a,
98 LL | | with_signature(cell, t, |cell, t| require(cell, t));
102 = note: defining type: projection_outlives::<'_#1r, '_#2r, '_#3r, T>
104 note: external requirements
105 --> $DIR/projection-two-region-trait-bound-closure.rs:70:29
107 LL | with_signature(cell, t, |cell, t| require(cell, t));
108 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
110 = note: defining type: elements_outlive1::<'_#1r, '_#2r, '_#3r, T>::{closure#0} with closure substs [
112 extern "rust-call" fn((std::cell::Cell<&'_#4r ()>, T)),
115 = note: number of external vids: 5
116 = note: where <T as Anything<ReEarlyBound(1, 'b), ReEarlyBound(2, 'c)>>::AssocType: '_#4r
118 note: no external requirements
119 --> $DIR/projection-two-region-trait-bound-closure.rs:65:1
121 LL | / fn elements_outlive1<'a, 'b, 'c, T>(cell: Cell<&'a ()>, t: T)
123 LL | | T: Anything<'b, 'c>,
126 LL | | with_signature(cell, t, |cell, t| require(cell, t));
130 = note: defining type: elements_outlive1::<'_#1r, '_#2r, '_#3r, T>
132 note: external requirements
133 --> $DIR/projection-two-region-trait-bound-closure.rs:79:29
135 LL | with_signature(cell, t, |cell, t| require(cell, t));
136 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
138 = note: defining type: elements_outlive2::<'_#1r, '_#2r, '_#3r, T>::{closure#0} with closure substs [
140 extern "rust-call" fn((std::cell::Cell<&'_#4r ()>, T)),
143 = note: number of external vids: 5
144 = note: where <T as Anything<ReEarlyBound(1, 'b), ReEarlyBound(2, 'c)>>::AssocType: '_#4r
146 note: no external requirements
147 --> $DIR/projection-two-region-trait-bound-closure.rs:74:1
149 LL | / fn elements_outlive2<'a, 'b, 'c, T>(cell: Cell<&'a ()>, t: T)
151 LL | | T: Anything<'b, 'c>,
154 LL | | with_signature(cell, t, |cell, t| require(cell, t));
158 = note: defining type: elements_outlive2::<'_#1r, '_#2r, '_#3r, T>
160 note: external requirements
161 --> $DIR/projection-two-region-trait-bound-closure.rs:87:29
163 LL | with_signature(cell, t, |cell, t| require(cell, t));
164 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
166 = note: defining type: two_regions::<'_#1r, T>::{closure#0} with closure substs [
168 extern "rust-call" fn((std::cell::Cell<&'_#2r ()>, T)),
171 = note: late-bound region is '_#3r
172 = note: number of external vids: 4
173 = note: where <T as Anything<ReEarlyBound(0, 'b), ReEarlyBound(0, 'b)>>::AssocType: '_#2r
175 note: no external requirements
176 --> $DIR/projection-two-region-trait-bound-closure.rs:83:1
178 LL | / fn two_regions<'a, 'b, T>(cell: Cell<&'a ()>, t: T)
180 LL | | T: Anything<'b, 'b>,
182 LL | | with_signature(cell, t, |cell, t| require(cell, t));
187 = note: defining type: two_regions::<'_#1r, T>
189 error: lifetime may not live long enough
190 --> $DIR/projection-two-region-trait-bound-closure.rs:87:29
192 LL | fn two_regions<'a, 'b, T>(cell: Cell<&'a ()>, t: T)
193 | -- -- lifetime `'b` defined here
195 | lifetime `'a` defined here
197 LL | with_signature(cell, t, |cell, t| require(cell, t));
198 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ closure body requires that `'b` must outlive `'a`
200 = help: consider adding the following bound: `'b: 'a`
202 note: external requirements
203 --> $DIR/projection-two-region-trait-bound-closure.rs:97:29
205 LL | with_signature(cell, t, |cell, t| require(cell, t));
206 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
208 = note: defining type: two_regions_outlive::<'_#1r, '_#2r, T>::{closure#0} with closure substs [
210 extern "rust-call" fn((std::cell::Cell<&'_#3r ()>, T)),
213 = note: number of external vids: 4
214 = note: where <T as Anything<ReEarlyBound(1, 'b), ReEarlyBound(1, 'b)>>::AssocType: '_#3r
216 note: no external requirements
217 --> $DIR/projection-two-region-trait-bound-closure.rs:92:1
219 LL | / fn two_regions_outlive<'a, 'b, T>(cell: Cell<&'a ()>, t: T)
221 LL | | T: Anything<'b, 'b>,
224 LL | | with_signature(cell, t, |cell, t| require(cell, t));
228 = note: defining type: two_regions_outlive::<'_#1r, '_#2r, T>
230 note: external requirements
231 --> $DIR/projection-two-region-trait-bound-closure.rs:109:29
233 LL | with_signature(cell, t, |cell, t| require(cell, t));
234 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
236 = note: defining type: one_region::<'_#1r, T>::{closure#0} with closure substs [
238 extern "rust-call" fn((std::cell::Cell<&'_#2r ()>, T)),
241 = note: number of external vids: 3
242 = note: where <T as Anything<ReEarlyBound(0, 'a), ReEarlyBound(0, 'a)>>::AssocType: '_#2r
244 note: no external requirements
245 --> $DIR/projection-two-region-trait-bound-closure.rs:101:1
247 LL | / fn one_region<'a, T>(cell: Cell<&'a ()>, t: T)
249 LL | | T: Anything<'a, 'a>,
252 LL | | with_signature(cell, t, |cell, t| require(cell, t));
256 = note: defining type: one_region::<'_#1r, T>
258 error: aborting due to 3 previous errors
260 For more information about this error, try `rustc --explain E0309`.