fork/rust
git clone https://git.julia.blue/fork/rust
5e1a799842b
1.41.0
1note: No external requirements 2 --> $DIR/propagate-approximated-fail-no-postdom.rs:43:9 3 | 4LL | / |_outlives1, _outlives2, _outlives3, x, y| { 5LL | | // Only works if 'x: 'y: 6LL | | let p = x.get(); 7LL | | demand_y(x, y, p) 8LL | | }, 9 | |_________^ 10 | 11 = note: defining type: supply::{{closure}}#0 with closure substs [ 12 i16, 13 for<'r, 's> extern "rust-call" fn((std::cell::Cell<&'_#1r &ReLateBound(DebruijnIndex(0), BrNamed('r)) u32>, std::cell::Cell<&'_#2r &ReLateBound(DebruijnIndex(0), BrNamed('r)) u32>, std::cell::Cell<&ReLateBound(DebruijnIndex(0), BrNamed('s)) &'_#3r u32>, std::cell::Cell<&ReLateBound(DebruijnIndex(0), BrNamed('r)) u32>, std::cell::Cell<&ReLateBound(DebruijnIndex(0), BrNamed('s)) u32>)), 14 ] 15 = note: late-bound region is '_#4r 16 = note: late-bound region is '_#5r 17 = note: late-bound region is '_#6r 18 19error: lifetime may not live long enough 20 --> $DIR/propagate-approximated-fail-no-postdom.rs:46:13 21 | 22LL | |_outlives1, _outlives2, _outlives3, x, y| { 23 | ---------- ---------- has type `std::cell::Cell<&'2 &'_#3r u32>` 24 | | 25 | has type `std::cell::Cell<&'_#1r &'1 u32>` 26... 27LL | demand_y(x, y, p) 28 | ^^^^^^^^^^^^^^^^^ argument requires that `'1` must outlive `'2` 29 30note: No external requirements 31 --> $DIR/propagate-approximated-fail-no-postdom.rs:38:1 32 | 33LL | / fn supply<'a, 'b, 'c>(cell_a: Cell<&'a u32>, cell_b: Cell<&'b u32>, cell_c: Cell<&'c u32>) { 34LL | | establish_relationships( 35LL | | cell_a, 36LL | | cell_b, 37... | 38LL | | ); 39LL | | } 40 | |_^ 41 | 42 = note: defining type: supply 43 44error: aborting due to previous error 45