fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
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: no_relationships_late::<'?1, '?2, T>::{closure#0} with closure args [ 8 i32, 9 extern "rust-call" fn((std::cell::Cell<&'?3 ()>, T)), 10 (), 11 ] 12 = note: late-bound region is '?4 13 = note: number of external vids: 5 14 = note: where <T as Anything<'?1, '?2>>::AssocType: '?3 15 16note: no external requirements 17 --> $DIR/projection-two-region-trait-bound-closure.rs:34:1 18 | 19LL | / fn no_relationships_late<'a, 'b, 'c, T>(cell: Cell<&'a ()>, t: T) 20LL | | where 21LL | | T: Anything<'b, 'c>, 22 | |________________________^ 23 | 24 = note: defining type: no_relationships_late::<'?1, '?2, T> 25 26error[E0309]: the associated type `<T as Anything<'?5, '?6>>::AssocType` may not live long enough 27 --> $DIR/projection-two-region-trait-bound-closure.rs:38:39 28 | 29LL | with_signature(cell, t, |cell, t| require(cell, t)); 30 | ^^^^^^^^^^^^^^^^ 31 | 32 = help: consider adding an explicit lifetime bound `<T as Anything<'?5, '?6>>::AssocType: 'a`... 33 = note: ...so that the type `<T as Anything<'?5, '?6>>::AssocType` will meet its required lifetime bounds 34 35note: external requirements 36 --> $DIR/projection-two-region-trait-bound-closure.rs:48:29 37 | 38LL | with_signature(cell, t, |cell, t| require(cell, t)); 39 | ^^^^^^^^^ 40 | 41 = note: defining type: no_relationships_early::<'?1, '?2, '?3, T>::{closure#0} with closure args [ 42 i32, 43 extern "rust-call" fn((std::cell::Cell<&'?4 ()>, T)), 44 (), 45 ] 46 = note: number of external vids: 5 47 = note: where <T as Anything<'?2, '?3>>::AssocType: '?4 48 49note: no external requirements 50 --> $DIR/projection-two-region-trait-bound-closure.rs:43:1 51 | 52LL | / fn no_relationships_early<'a, 'b, 'c, T>(cell: Cell<&'a ()>, t: T) 53LL | | where 54LL | | T: Anything<'b, 'c>, 55LL | | 'a: 'a, 56 | |___________^ 57 | 58 = note: defining type: no_relationships_early::<'?1, '?2, '?3, T> 59 60error[E0309]: the associated type `<T as Anything<'?6, '?7>>::AssocType` may not live long enough 61 --> $DIR/projection-two-region-trait-bound-closure.rs:48:39 62 | 63LL | with_signature(cell, t, |cell, t| require(cell, t)); 64 | ^^^^^^^^^^^^^^^^ 65 | 66 = help: consider adding an explicit lifetime bound `<T as Anything<'?6, '?7>>::AssocType: 'a`... 67 = note: ...so that the type `<T as Anything<'?6, '?7>>::AssocType` will meet its required lifetime bounds 68 69note: external requirements 70 --> $DIR/projection-two-region-trait-bound-closure.rs:61:29 71 | 72LL | with_signature(cell, t, |cell, t| require(cell, t)); 73 | ^^^^^^^^^ 74 | 75 = note: defining type: projection_outlives::<'?1, '?2, '?3, T>::{closure#0} with closure args [ 76 i32, 77 extern "rust-call" fn((std::cell::Cell<&'?4 ()>, T)), 78 (), 79 ] 80 = note: number of external vids: 5 81 = note: where <T as Anything<'?2, '?3>>::AssocType: '?4 82 83note: no external requirements 84 --> $DIR/projection-two-region-trait-bound-closure.rs:53:1 85 | 86LL | / fn projection_outlives<'a, 'b, 'c, T>(cell: Cell<&'a ()>, t: T) 87LL | | where 88LL | | T: Anything<'b, 'c>, 89LL | | T::AssocType: 'a, 90 | |_____________________^ 91 | 92 = note: defining type: projection_outlives::<'?1, '?2, '?3, T> 93 94note: external requirements 95 --> $DIR/projection-two-region-trait-bound-closure.rs:70:29 96 | 97LL | with_signature(cell, t, |cell, t| require(cell, t)); 98 | ^^^^^^^^^ 99 | 100 = note: defining type: elements_outlive1::<'?1, '?2, '?3, T>::{closure#0} with closure args [ 101 i32, 102 extern "rust-call" fn((std::cell::Cell<&'?4 ()>, T)), 103 (), 104 ] 105 = note: number of external vids: 5 106 = note: where <T as Anything<'?2, '?3>>::AssocType: '?4 107 108note: no external requirements 109 --> $DIR/projection-two-region-trait-bound-closure.rs:65:1 110 | 111LL | / fn elements_outlive1<'a, 'b, 'c, T>(cell: Cell<&'a ()>, t: T) 112LL | | where 113LL | | T: Anything<'b, 'c>, 114LL | | 'b: 'a, 115 | |___________^ 116 | 117 = note: defining type: elements_outlive1::<'?1, '?2, '?3, T> 118 119note: external requirements 120 --> $DIR/projection-two-region-trait-bound-closure.rs:79:29 121 | 122LL | with_signature(cell, t, |cell, t| require(cell, t)); 123 | ^^^^^^^^^ 124 | 125 = note: defining type: elements_outlive2::<'?1, '?2, '?3, T>::{closure#0} with closure args [ 126 i32, 127 extern "rust-call" fn((std::cell::Cell<&'?4 ()>, T)), 128 (), 129 ] 130 = note: number of external vids: 5 131 = note: where <T as Anything<'?2, '?3>>::AssocType: '?4 132 133note: no external requirements 134 --> $DIR/projection-two-region-trait-bound-closure.rs:74:1 135 | 136LL | / fn elements_outlive2<'a, 'b, 'c, T>(cell: Cell<&'a ()>, t: T) 137LL | | where 138LL | | T: Anything<'b, 'c>, 139LL | | 'c: 'a, 140 | |___________^ 141 | 142 = note: defining type: elements_outlive2::<'?1, '?2, '?3, T> 143 144note: external requirements 145 --> $DIR/projection-two-region-trait-bound-closure.rs:87:29 146 | 147LL | with_signature(cell, t, |cell, t| require(cell, t)); 148 | ^^^^^^^^^ 149 | 150 = note: defining type: two_regions::<'?1, T>::{closure#0} with closure args [ 151 i32, 152 extern "rust-call" fn((std::cell::Cell<&'?2 ()>, T)), 153 (), 154 ] 155 = note: late-bound region is '?3 156 = note: number of external vids: 4 157 = note: where <T as Anything<'?1, '?1>>::AssocType: '?2 158 159note: no external requirements 160 --> $DIR/projection-two-region-trait-bound-closure.rs:83:1 161 | 162LL | / fn two_regions<'a, 'b, T>(cell: Cell<&'a ()>, t: T) 163LL | | where 164LL | | T: Anything<'b, 'b>, 165 | |________________________^ 166 | 167 = note: defining type: two_regions::<'?1, T> 168 169error: lifetime may not live long enough 170 --> $DIR/projection-two-region-trait-bound-closure.rs:87:5 171 | 172LL | fn two_regions<'a, 'b, T>(cell: Cell<&'a ()>, t: T) 173 | -- -- lifetime `'b` defined here 174 | | 175 | lifetime `'a` defined here 176... 177LL | with_signature(cell, t, |cell, t| require(cell, t)); 178 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ argument requires that `'b` must outlive `'a` 179 | 180 = help: consider adding the following bound: `'b: 'a` 181 = note: requirement occurs because of the type `Cell<&'?8 ()>`, which makes the generic argument `&'?8 ()` invariant 182 = note: the struct `Cell<T>` is invariant over the parameter `T` 183 = help: see <https://doc.rust-lang.org/nomicon/subtyping.html> for more information about variance 184 185note: external requirements 186 --> $DIR/projection-two-region-trait-bound-closure.rs:97:29 187 | 188LL | with_signature(cell, t, |cell, t| require(cell, t)); 189 | ^^^^^^^^^ 190 | 191 = note: defining type: two_regions_outlive::<'?1, '?2, T>::{closure#0} with closure args [ 192 i32, 193 extern "rust-call" fn((std::cell::Cell<&'?3 ()>, T)), 194 (), 195 ] 196 = note: number of external vids: 4 197 = note: where <T as Anything<'?2, '?2>>::AssocType: '?3 198 199note: no external requirements 200 --> $DIR/projection-two-region-trait-bound-closure.rs:92:1 201 | 202LL | / fn two_regions_outlive<'a, 'b, T>(cell: Cell<&'a ()>, t: T) 203LL | | where 204LL | | T: Anything<'b, 'b>, 205LL | | 'b: 'a, 206 | |___________^ 207 | 208 = note: defining type: two_regions_outlive::<'?1, '?2, T> 209 210note: external requirements 211 --> $DIR/projection-two-region-trait-bound-closure.rs:109:29 212 | 213LL | with_signature(cell, t, |cell, t| require(cell, t)); 214 | ^^^^^^^^^ 215 | 216 = note: defining type: one_region::<'?1, T>::{closure#0} with closure args [ 217 i32, 218 extern "rust-call" fn((std::cell::Cell<&'?2 ()>, T)), 219 (), 220 ] 221 = note: number of external vids: 3 222 = note: where <T as Anything<'?1, '?1>>::AssocType: '?2 223 224note: no external requirements 225 --> $DIR/projection-two-region-trait-bound-closure.rs:101:1 226 | 227LL | / fn one_region<'a, T>(cell: Cell<&'a ()>, t: T) 228LL | | where 229LL | | T: Anything<'a, 'a>, 230 | |________________________^ 231 | 232 = note: defining type: one_region::<'?1, T> 233 234error: aborting due to 3 previous errors 235 236For more information about this error, try `rustc --explain E0309`.