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