fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1note: external requirements 2 --> $DIR/propagate-approximated-val.rs:36:45 3 | 4LL | establish_relationships(cell_a, cell_b, |outlives1, outlives2, x, y| { 5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 6 | 7 = note: defining type: test::{closure#0} with closure args [ 8 i16, 9 for<Region(BrAnon), Region(BrAnon)> extern "rust-call" fn((std::cell::Cell<&'?1 &ReLateBound(DebruijnIndex(0), BoundRegion { var: 0, kind: BrAnon }) u32>, std::cell::Cell<&ReLateBound(DebruijnIndex(0), BoundRegion { var: 1, kind: BrAnon }) &'?2 u32>, std::cell::Cell<&ReLateBound(DebruijnIndex(0), BoundRegion { var: 0, kind: BrAnon }) u32>, std::cell::Cell<&ReLateBound(DebruijnIndex(0), BoundRegion { var: 1, 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-val.rs:35:1 19 | 20LL | fn test<'a, 'b>(cell_a: Cell<&'a u32>, cell_b: Cell<&'b u32>) { 21 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 22 | 23 = note: defining type: test 24 25error: lifetime may not live long enough 26 --> $DIR/propagate-approximated-val.rs:38:9 27 | 28LL | fn test<'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(outlives1, outlives2, 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