1 note: External requirements
2 --> $DIR/propagate-approximated-ref.rs:43:47
4 LL | establish_relationships(&cell_a, &cell_b, |_outlives1, _outlives2, x, y| {
5 | _______________________________________________^
7 LL | | // Only works if 'x: 'y:
8 LL | | demand_y(x, y, x.get())
9 LL | | //~^ ERROR unsatisfied lifetime constraints
13 = note: defining type: DefId(0/1:18 ~ propagate_approximated_ref[317d]::supply[0]::{{closure}}[0]) with closure substs [
15 for<'r, 's, 't0, 't1, 't2, 't3> extern "rust-call" fn((&ReLateBound(DebruijnIndex(0), BrNamed(crate0:DefIndex(0:0), 'r)) std::cell::Cell<&'_#1r &ReLateBound(DebruijnIndex(0), BrNamed(crate0:DefIndex(0:0), 's)) u32>, &ReLateBound(DebruijnIndex(0), BrNamed(crate0:DefIndex(0:0), 't0)) std::cell::Cell<&ReLateBound(DebruijnIndex(0), BrNamed(crate0:DefIndex(0:0), 't1)) &'_#2r u32>, &ReLateBound(DebruijnIndex(0), BrNamed(crate0:DefIndex(0:0), 't2)) std::cell::Cell<&ReLateBound(DebruijnIndex(0), BrNamed(crate0:DefIndex(0:0), 's)) u32>, &ReLateBound(DebruijnIndex(0), BrNamed(crate0:DefIndex(0:0), 't3)) std::cell::Cell<&ReLateBound(DebruijnIndex(0), BrNamed(crate0:DefIndex(0:0), 't1)) u32>))
17 = note: late-bound region is '_#3r
18 = note: late-bound region is '_#4r
19 = note: number of external vids: 5
20 = note: where '_#1r: '_#2r
22 note: No external requirements
23 --> $DIR/propagate-approximated-ref.rs:42:1
25 LL | / fn supply<'a, 'b>(cell_a: Cell<&'a u32>, cell_b: Cell<&'b u32>) {
26 LL | | establish_relationships(&cell_a, &cell_b, |_outlives1, _outlives2, x, y| {
28 LL | | // Only works if 'x: 'y:
34 = note: defining type: DefId(0/0:6 ~ propagate_approximated_ref[317d]::supply[0]) with substs []
36 error: unsatisfied lifetime constraints
37 --> $DIR/propagate-approximated-ref.rs:46:9
39 LL | fn supply<'a, 'b>(cell_a: Cell<&'a u32>, cell_b: Cell<&'b u32>) {
40 | -- -- lifetime `'b` defined here
42 | lifetime `'a` defined here
44 LL | demand_y(x, y, x.get())
45 | ^^^^^^^^^^^^^^^^^^^^^^^ argument requires that `'a` must outlive `'b`
47 error: aborting due to previous error