1 note: External requirements
2 --> $DIR/projection-one-region-closure.rs:55:29
4 LL | with_signature(cell, t, |cell, t| require(cell, t));
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
7 = note: defining type: DefId(0/1:19 ~ projection_one_region_closure[317d]::no_relationships_late[0]::{{closure}}[0]) with closure substs [
11 extern "rust-call" fn((std::cell::Cell<&'_#2r ()>, T))
13 = note: number of external vids: 4
14 = note: where T: '_#2r
15 = note: where '_#1r: '_#2r
17 note: No external requirements
18 --> $DIR/projection-one-region-closure.rs:51:1
20 LL | / fn no_relationships_late<'a, 'b, T>(cell: Cell<&'a ()>, t: T)
22 LL | | T: Anything<'b>,
29 = note: defining type: DefId(0/0:8 ~ projection_one_region_closure[317d]::no_relationships_late[0]) with substs [
34 error: unsatisfied lifetime constraints
35 --> $DIR/projection-one-region-closure.rs:55:5
37 LL | fn no_relationships_late<'a, 'b, T>(cell: Cell<&'a ()>, t: T)
38 | -- -- lifetime `'b` defined here
40 | lifetime `'a` defined here
42 LL | with_signature(cell, t, |cell, t| require(cell, t));
43 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ argument requires that `'b` must outlive `'a`
45 error[E0309]: the parameter type `T` may not live long enough
46 --> $DIR/projection-one-region-closure.rs:55:29
48 LL | with_signature(cell, t, |cell, t| require(cell, t));
49 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
51 = help: consider adding an explicit lifetime bound `T: ReFree(DefId(0/0:8 ~ projection_one_region_closure[317d]::no_relationships_late[0]), BrNamed(crate0:DefIndex(1:16), 'a))`...
53 note: External requirements
54 --> $DIR/projection-one-region-closure.rs:66:29
56 LL | with_signature(cell, t, |cell, t| require(cell, t));
57 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
59 = note: defining type: DefId(0/1:23 ~ projection_one_region_closure[317d]::no_relationships_early[0]::{{closure}}[0]) with closure substs [
64 extern "rust-call" fn((std::cell::Cell<&'_#3r ()>, T))
66 = note: number of external vids: 4
67 = note: where T: '_#3r
68 = note: where '_#2r: '_#3r
70 note: No external requirements
71 --> $DIR/projection-one-region-closure.rs:61:1
73 LL | / fn no_relationships_early<'a, 'b, T>(cell: Cell<&'a ()>, t: T)
75 LL | | T: Anything<'b>,
82 = note: defining type: DefId(0/0:9 ~ projection_one_region_closure[317d]::no_relationships_early[0]) with substs [
88 error: unsatisfied lifetime constraints
89 --> $DIR/projection-one-region-closure.rs:66:5
91 LL | fn no_relationships_early<'a, 'b, T>(cell: Cell<&'a ()>, t: T)
92 | -- -- lifetime `'b` defined here
94 | lifetime `'a` defined here
96 LL | with_signature(cell, t, |cell, t| require(cell, t));
97 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ argument requires that `'b` must outlive `'a`
99 error[E0309]: the parameter type `T` may not live long enough
100 --> $DIR/projection-one-region-closure.rs:66:29
102 LL | with_signature(cell, t, |cell, t| require(cell, t));
103 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
105 = help: consider adding an explicit lifetime bound `T: ReEarlyBound(0, 'a)`...
107 note: External requirements
108 --> $DIR/projection-one-region-closure.rs:87:29
110 LL | with_signature(cell, t, |cell, t| require(cell, t));
111 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
113 = note: defining type: DefId(0/1:27 ~ projection_one_region_closure[317d]::projection_outlives[0]::{{closure}}[0]) with closure substs [
118 extern "rust-call" fn((std::cell::Cell<&'_#3r ()>, T))
120 = note: number of external vids: 4
121 = note: where T: '_#3r
122 = note: where '_#2r: '_#3r
124 note: No external requirements
125 --> $DIR/projection-one-region-closure.rs:72:1
127 LL | / fn projection_outlives<'a, 'b, T>(cell: Cell<&'a ()>, t: T)
129 LL | | T: Anything<'b>,
130 LL | | T::AssocType: 'a,
136 = note: defining type: DefId(0/0:10 ~ projection_one_region_closure[317d]::projection_outlives[0]) with substs [
142 error: unsatisfied lifetime constraints
143 --> $DIR/projection-one-region-closure.rs:87:5
145 LL | fn projection_outlives<'a, 'b, T>(cell: Cell<&'a ()>, t: T)
146 | -- -- lifetime `'b` defined here
148 | lifetime `'a` defined here
150 LL | with_signature(cell, t, |cell, t| require(cell, t));
151 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ argument requires that `'b` must outlive `'a`
153 error[E0309]: the parameter type `T` may not live long enough
154 --> $DIR/projection-one-region-closure.rs:87:29
156 LL | with_signature(cell, t, |cell, t| require(cell, t));
157 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
159 = help: consider adding an explicit lifetime bound `T: ReEarlyBound(0, 'a)`...
161 note: External requirements
162 --> $DIR/projection-one-region-closure.rs:99:29
164 LL | with_signature(cell, t, |cell, t| require(cell, t));
165 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
167 = note: defining type: DefId(0/1:31 ~ projection_one_region_closure[317d]::elements_outlive[0]::{{closure}}[0]) with closure substs [
172 extern "rust-call" fn((std::cell::Cell<&'_#3r ()>, T))
174 = note: number of external vids: 4
175 = note: where T: '_#3r
176 = note: where '_#2r: '_#3r
178 note: No external requirements
179 --> $DIR/projection-one-region-closure.rs:93:1
181 LL | / fn elements_outlive<'a, 'b, T>(cell: Cell<&'a ()>, t: T)
183 LL | | T: Anything<'b>,
186 LL | | with_signature(cell, t, |cell, t| require(cell, t));
190 = note: defining type: DefId(0/0:11 ~ projection_one_region_closure[317d]::elements_outlive[0]) with substs [
196 error: aborting due to 6 previous errors
198 For more information about this error, try `rustc --explain E0309`.