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