fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1note: external requirements 2 --> $DIR/propagate-approximated-ref.rs:43:47 3 | 4LL | establish_relationships(&cell_a, &cell_b, |_outlives1, _outlives2, x, y| { 5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 6 | 7 = note: defining type: supply::{closure#0} with closure args [ 8 i16, 9 for<Region(BrAnon), Region(BrAnon), Region(BrAnon), Region(BrAnon), Region(BrAnon), Region(BrAnon)> extern "rust-call" fn((&ReLateBound(DebruijnIndex(0), BoundRegion { var: 0, kind: BrAnon }) std::cell::Cell<&'?1 &ReLateBound(DebruijnIndex(0), BoundRegion { var: 1, kind: BrAnon }) u32>, &ReLateBound(DebruijnIndex(0), BoundRegion { var: 2, kind: BrAnon }) std::cell::Cell<&ReLateBound(DebruijnIndex(0), BoundRegion { var: 3, kind: BrAnon }) &'?2 u32>, &ReLateBound(DebruijnIndex(0), BoundRegion { var: 4, kind: BrAnon }) std::cell::Cell<&ReLateBound(DebruijnIndex(0), BoundRegion { var: 1, kind: BrAnon }) u32>, &ReLateBound(DebruijnIndex(0), BoundRegion { var: 5, kind: BrAnon }) std::cell::Cell<&ReLateBound(DebruijnIndex(0), BoundRegion { var: 3, kind: BrAnon }) u32>)), 10 (), 11 ] 12 = note: late-bound region is '?3 13 = note: late-bound region is '?4 14 = note: number of external vids: 5 15 = note: where '?1: '?2 16 17note: no external requirements 18 --> $DIR/propagate-approximated-ref.rs:42:1 19 | 20LL | fn supply<'a, 'b>(cell_a: Cell<&'a u32>, cell_b: Cell<&'b u32>) { 21 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 22 | 23 = note: defining type: supply 24 25error: lifetime may not live long enough 26 --> $DIR/propagate-approximated-ref.rs:45:9 27 | 28LL | fn supply<'a, 'b>(cell_a: Cell<&'a u32>, cell_b: Cell<&'b u32>) { 29 | -- -- lifetime `'b` defined here 30 | | 31 | lifetime `'a` defined here 32... 33LL | demand_y(x, y, x.get()) 34 | ^^^^^^^^^^^^^^^^^^^^^^^ argument requires that `'a` must outlive `'b` 35 | 36 = help: consider adding the following bound: `'a: 'b` 37 38error: aborting due to previous error 39