]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/closure-requirements/propagate-approximated-fail-no-postdom.stderr
5f9724ce3db19c968fdfb24642c35d318a5e2e03
[rust.git] / src / test / ui / nll / closure-requirements / propagate-approximated-fail-no-postdom.stderr
1 note: no external requirements
2   --> $DIR/propagate-approximated-fail-no-postdom.rs:43:9
3    |
4 LL |         |_outlives1, _outlives2, _outlives3, x, y| {
5    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6    |
7    = note: defining type: supply::{closure#0} with closure substs [
8                i16,
9                for<'a, 'b> extern "rust-call" fn((std::cell::Cell<&'_#1r &ReLateBound(DebruijnIndex(0), BoundRegion { var: 0, kind: BrNamed('a) }) u32>, std::cell::Cell<&'_#2r &ReLateBound(DebruijnIndex(0), BoundRegion { var: 0, kind: BrNamed('a) }) u32>, std::cell::Cell<&ReLateBound(DebruijnIndex(0), BoundRegion { var: 1, kind: BrNamed('b) }) &'_#3r u32>, std::cell::Cell<&ReLateBound(DebruijnIndex(0), BoundRegion { var: 0, kind: BrNamed('a) }) u32>, std::cell::Cell<&ReLateBound(DebruijnIndex(0), BoundRegion { var: 1, kind: BrNamed('b) }) u32>)),
10                (),
11            ]
12    = note: late-bound region is '_#4r
13    = note: late-bound region is '_#5r
14    = note: late-bound region is '_#6r
15
16 error: lifetime may not live long enough
17   --> $DIR/propagate-approximated-fail-no-postdom.rs:46:13
18    |
19 LL |         |_outlives1, _outlives2, _outlives3, x, y| {
20    |          ----------              ---------- has type `Cell<&'2 &'_#3r u32>`
21    |          |
22    |          has type `Cell<&'_#1r &'1 u32>`
23 ...
24 LL |             demand_y(x, y, p)
25    |             ^^^^^^^^^^^^^^^^^ argument requires that `'1` must outlive `'2`
26
27 note: no external requirements
28   --> $DIR/propagate-approximated-fail-no-postdom.rs:38:1
29    |
30 LL | fn supply<'a, 'b, 'c>(cell_a: Cell<&'a u32>, cell_b: Cell<&'b u32>, cell_c: Cell<&'c u32>) {
31    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
32    |
33    = note: defining type: supply
34
35 error: aborting due to previous error
36