fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
1.8 KiB46 linesraw
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           ]
16   = note: late-bound region is '_#4r
17   = note: late-bound region is '_#5r
18   = note: late-bound region is '_#6r
19
20error: lifetime may not live long enough
21  --> $DIR/propagate-approximated-fail-no-postdom.rs:46:13
22   |
23LL |         |_outlives1, _outlives2, _outlives3, x, y| {
24   |          ----------              ---------- has type `std::cell::Cell<&'2 &'_#3r u32>`
25   |          |
26   |          has type `std::cell::Cell<&'_#1r &'1 u32>`
27...
28LL |             demand_y(x, y, p)
29   |             ^^^^^^^^^^^^^^^^^ argument requires that `'1` must outlive `'2`
30
31note: no external requirements
32  --> $DIR/propagate-approximated-fail-no-postdom.rs:38:1
33   |
34LL | / fn supply<'a, 'b, 'c>(cell_a: Cell<&'a u32>, cell_b: Cell<&'b u32>, cell_c: Cell<&'c u32>) {
35LL | |     establish_relationships(
36LL | |         cell_a,
37LL | |         cell_b,
38...  |
39LL | |     );
40LL | | }
41   | |_^
42   |
43   = note: defining type: supply
44
45error: aborting due to previous error
46