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