1 error: lifetime may not live long enough
2 --> $DIR/outlives-suggestion-more.rs:5:5
4 LL | fn foo1<'a, 'b, 'c, 'd>(x: &'a usize, y: &'b usize) -> (&'c usize, &'d usize) {
5 | -- -- lifetime `'c` defined here
7 | lifetime `'a` defined here
9 | ^^^^^^ function was supposed to return data with lifetime `'c` but it is returning data with lifetime `'a`
11 = help: consider adding the following bound: `'a: 'c`
13 error: lifetime may not live long enough
14 --> $DIR/outlives-suggestion-more.rs:5:5
16 LL | fn foo1<'a, 'b, 'c, 'd>(x: &'a usize, y: &'b usize) -> (&'c usize, &'d usize) {
17 | -- -- lifetime `'d` defined here
19 | lifetime `'b` defined here
21 | ^^^^^^ function was supposed to return data with lifetime `'d` but it is returning data with lifetime `'b`
23 = help: consider adding the following bound: `'b: 'd`
25 help: the following changes may resolve your lifetime errors
27 = help: add bound `'a: 'c`
28 = help: add bound `'b: 'd`
30 error: lifetime may not live long enough
31 --> $DIR/outlives-suggestion-more.rs:11:5
33 LL | fn foo2<'a, 'b, 'c>(x: &'a usize, y: &'b usize) -> (&'c usize, &'static usize) {
34 | -- -- lifetime `'c` defined here
36 | lifetime `'a` defined here
38 | ^^^^^^ function was supposed to return data with lifetime `'c` but it is returning data with lifetime `'a`
40 = help: consider adding the following bound: `'a: 'c`
42 error: lifetime may not live long enough
43 --> $DIR/outlives-suggestion-more.rs:11:5
45 LL | fn foo2<'a, 'b, 'c>(x: &'a usize, y: &'b usize) -> (&'c usize, &'static usize) {
46 | -- lifetime `'b` defined here
48 | ^^^^^^ returning this value requires that `'b` must outlive `'static`
50 help: the following changes may resolve your lifetime errors
52 = help: add bound `'a: 'c`
53 = help: replace `'b` with `'static`
55 error: lifetime may not live long enough
56 --> $DIR/outlives-suggestion-more.rs:21:5
58 LL | fn foo3<'a, 'b, 'c, 'd, 'e>(
59 | -- -- lifetime `'b` defined here
61 | lifetime `'a` defined here
64 | ^^^^^^^^^ function was supposed to return data with lifetime `'b` but it is returning data with lifetime `'a`
66 = help: consider adding the following bound: `'a: 'b`
68 error: lifetime may not live long enough
69 --> $DIR/outlives-suggestion-more.rs:21:5
71 LL | fn foo3<'a, 'b, 'c, 'd, 'e>(
72 | -- -- lifetime `'b` defined here
74 | lifetime `'a` defined here
77 | ^^^^^^^^^ function was supposed to return data with lifetime `'a` but it is returning data with lifetime `'b`
79 = help: consider adding the following bound: `'b: 'a`
81 error: lifetime may not live long enough
82 --> $DIR/outlives-suggestion-more.rs:21:5
84 LL | fn foo3<'a, 'b, 'c, 'd, 'e>(
85 | -- lifetime `'c` defined here
88 | ^^^^^^^^^ returning this value requires that `'c` must outlive `'static`
90 help: the following changes may resolve your lifetime errors
92 = help: `'a` and `'b` must be the same: replace one with the other
93 = help: replace `'c` with `'static`
95 error: aborting due to 7 previous errors