]>
Commit | Line | Data |
---|---|---|
dfeec247 | 1 | note: external requirements |
0731742a | 2 | --> $DIR/projection-one-region-trait-bound-closure.rs:37:29 |
ff7c6d11 | 3 | | |
0531ce1d | 4 | LL | with_signature(cell, t, |cell, t| require(cell, t)); |
ff7c6d11 XL |
5 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^ |
6 | | | |
1b1a35ee | 7 | = note: defining type: no_relationships_late::<'_#1r, T>::{closure#0} with closure substs [ |
ff7c6d11 | 8 | i32, |
532ac7d7 | 9 | extern "rust-call" fn((std::cell::Cell<&'_#2r ()>, T)), |
ba9703b0 | 10 | (), |
ff7c6d11 | 11 | ] |
b7449926 XL |
12 | = note: late-bound region is '_#3r |
13 | = note: number of external vids: 4 | |
ff7c6d11 XL |
14 | = note: where '_#1r: '_#2r |
15 | ||
dfeec247 | 16 | note: no external requirements |
0731742a | 17 | --> $DIR/projection-one-region-trait-bound-closure.rs:33:1 |
0531ce1d XL |
18 | | |
19 | LL | / fn no_relationships_late<'a, 'b, T>(cell: Cell<&'a ()>, t: T) | |
20 | LL | | where | |
21 | LL | | T: Anything<'b>, | |
22 | LL | | { | |
b7449926 | 23 | LL | | with_signature(cell, t, |cell, t| require(cell, t)); |
532ac7d7 | 24 | LL | | |
0531ce1d XL |
25 | LL | | } |
26 | | |_^ | |
27 | | | |
60c5eb7d | 28 | = note: defining type: no_relationships_late::<'_#1r, T> |
0531ce1d | 29 | |
9fa01778 | 30 | error: lifetime may not live long enough |
0731742a | 31 | --> $DIR/projection-one-region-trait-bound-closure.rs:37:39 |
b7449926 XL |
32 | | |
33 | LL | fn no_relationships_late<'a, 'b, T>(cell: Cell<&'a ()>, t: T) | |
34 | | -- -- lifetime `'b` defined here | |
35 | | | | |
36 | | lifetime `'a` defined here | |
37 | ... | |
38 | LL | with_signature(cell, t, |cell, t| require(cell, t)); | |
0bf4aa26 | 39 | | ^^^^^^^^^^^^^^^^ argument requires that `'b` must outlive `'a` |
60c5eb7d XL |
40 | | |
41 | = help: consider adding the following bound: `'b: 'a` | |
b7449926 | 42 | |
dfeec247 | 43 | note: external requirements |
0731742a | 44 | --> $DIR/projection-one-region-trait-bound-closure.rs:47:29 |
ff7c6d11 | 45 | | |
0531ce1d | 46 | LL | with_signature(cell, t, |cell, t| require(cell, t)); |
ff7c6d11 XL |
47 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^ |
48 | | | |
1b1a35ee | 49 | = note: defining type: no_relationships_early::<'_#1r, '_#2r, T>::{closure#0} with closure substs [ |
ff7c6d11 | 50 | i32, |
532ac7d7 | 51 | extern "rust-call" fn((std::cell::Cell<&'_#3r ()>, T)), |
ba9703b0 | 52 | (), |
ff7c6d11 | 53 | ] |
b7449926 | 54 | = note: number of external vids: 4 |
ff7c6d11 XL |
55 | = note: where '_#2r: '_#3r |
56 | ||
dfeec247 | 57 | note: no external requirements |
0731742a | 58 | --> $DIR/projection-one-region-trait-bound-closure.rs:42:1 |
ff7c6d11 | 59 | | |
0531ce1d XL |
60 | LL | / fn no_relationships_early<'a, 'b, T>(cell: Cell<&'a ()>, t: T) |
61 | LL | | where | |
62 | LL | | T: Anything<'b>, | |
63 | LL | | 'a: 'a, | |
64 | ... | | |
532ac7d7 | 65 | LL | | |
0531ce1d XL |
66 | LL | | } |
67 | | |_^ | |
68 | | | |
60c5eb7d | 69 | = note: defining type: no_relationships_early::<'_#1r, '_#2r, T> |
ff7c6d11 | 70 | |
9fa01778 | 71 | error: lifetime may not live long enough |
0731742a | 72 | --> $DIR/projection-one-region-trait-bound-closure.rs:47:39 |
b7449926 XL |
73 | | |
74 | LL | fn no_relationships_early<'a, 'b, T>(cell: Cell<&'a ()>, t: T) | |
75 | | -- -- lifetime `'b` defined here | |
76 | | | | |
77 | | lifetime `'a` defined here | |
78 | ... | |
79 | LL | with_signature(cell, t, |cell, t| require(cell, t)); | |
0bf4aa26 | 80 | | ^^^^^^^^^^^^^^^^ argument requires that `'b` must outlive `'a` |
60c5eb7d XL |
81 | | |
82 | = help: consider adding the following bound: `'b: 'a` | |
b7449926 | 83 | |
dfeec247 | 84 | note: external requirements |
0731742a | 85 | --> $DIR/projection-one-region-trait-bound-closure.rs:60:29 |
ff7c6d11 | 86 | | |
0531ce1d | 87 | LL | with_signature(cell, t, |cell, t| require(cell, t)); |
ff7c6d11 XL |
88 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^ |
89 | | | |
1b1a35ee | 90 | = note: defining type: projection_outlives::<'_#1r, '_#2r, T>::{closure#0} with closure substs [ |
ff7c6d11 | 91 | i32, |
532ac7d7 | 92 | extern "rust-call" fn((std::cell::Cell<&'_#3r ()>, T)), |
ba9703b0 | 93 | (), |
ff7c6d11 | 94 | ] |
b7449926 | 95 | = note: number of external vids: 4 |
ba9703b0 | 96 | = note: where <T as Anything<ReEarlyBound(1, 'b)>>::AssocType: '_#3r |
ff7c6d11 | 97 | |
dfeec247 | 98 | note: no external requirements |
0731742a | 99 | --> $DIR/projection-one-region-trait-bound-closure.rs:52:1 |
ff7c6d11 | 100 | | |
0531ce1d XL |
101 | LL | / fn projection_outlives<'a, 'b, T>(cell: Cell<&'a ()>, t: T) |
102 | LL | | where | |
103 | LL | | T: Anything<'b>, | |
104 | LL | | T::AssocType: 'a, | |
ff7c6d11 | 105 | ... | |
0bf4aa26 | 106 | LL | | with_signature(cell, t, |cell, t| require(cell, t)); |
0531ce1d | 107 | LL | | } |
ff7c6d11 XL |
108 | | |_^ |
109 | | | |
60c5eb7d | 110 | = note: defining type: projection_outlives::<'_#1r, '_#2r, T> |
ff7c6d11 | 111 | |
dfeec247 | 112 | note: external requirements |
0731742a | 113 | --> $DIR/projection-one-region-trait-bound-closure.rs:69:29 |
ff7c6d11 | 114 | | |
0531ce1d XL |
115 | LL | with_signature(cell, t, |cell, t| require(cell, t)); |
116 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
117 | | | |
1b1a35ee | 118 | = note: defining type: elements_outlive::<'_#1r, '_#2r, T>::{closure#0} with closure substs [ |
0531ce1d | 119 | i32, |
532ac7d7 | 120 | extern "rust-call" fn((std::cell::Cell<&'_#3r ()>, T)), |
ba9703b0 | 121 | (), |
0531ce1d | 122 | ] |
b7449926 | 123 | = note: number of external vids: 4 |
0531ce1d | 124 | = note: where '_#2r: '_#3r |
ff7c6d11 | 125 | |
dfeec247 | 126 | note: no external requirements |
0731742a | 127 | --> $DIR/projection-one-region-trait-bound-closure.rs:64:1 |
ff7c6d11 | 128 | | |
0531ce1d XL |
129 | LL | / fn elements_outlive<'a, 'b, T>(cell: Cell<&'a ()>, t: T) |
130 | LL | | where | |
131 | LL | | T: Anything<'b>, | |
132 | LL | | 'b: 'a, | |
133 | LL | | { | |
134 | LL | | with_signature(cell, t, |cell, t| require(cell, t)); | |
135 | LL | | } | |
ff7c6d11 XL |
136 | | |_^ |
137 | | | |
60c5eb7d | 138 | = note: defining type: elements_outlive::<'_#1r, '_#2r, T> |
ff7c6d11 | 139 | |
dfeec247 | 140 | note: external requirements |
0731742a | 141 | --> $DIR/projection-one-region-trait-bound-closure.rs:81:29 |
ff7c6d11 | 142 | | |
0531ce1d XL |
143 | LL | with_signature(cell, t, |cell, t| require(cell, t)); |
144 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
ff7c6d11 | 145 | | |
1b1a35ee | 146 | = note: defining type: one_region::<'_#1r, T>::{closure#0} with closure substs [ |
0531ce1d | 147 | i32, |
532ac7d7 | 148 | extern "rust-call" fn((std::cell::Cell<&'_#2r ()>, T)), |
ba9703b0 | 149 | (), |
ff7c6d11 | 150 | ] |
b7449926 | 151 | = note: number of external vids: 3 |
0531ce1d | 152 | = note: where '_#1r: '_#2r |
ff7c6d11 | 153 | |
dfeec247 | 154 | note: no external requirements |
0731742a | 155 | --> $DIR/projection-one-region-trait-bound-closure.rs:73:1 |
ff7c6d11 | 156 | | |
0531ce1d XL |
157 | LL | / fn one_region<'a, T>(cell: Cell<&'a ()>, t: T) |
158 | LL | | where | |
159 | LL | | T: Anything<'a>, | |
160 | LL | | { | |
161 | ... | | |
162 | LL | | with_signature(cell, t, |cell, t| require(cell, t)); | |
163 | LL | | } | |
ff7c6d11 XL |
164 | | |_^ |
165 | | | |
60c5eb7d | 166 | = note: defining type: one_region::<'_#1r, T> |
ff7c6d11 | 167 | |
0bf4aa26 | 168 | error: aborting due to 2 previous errors |
ff7c6d11 | 169 |