1 error: lifetime may not live long enough
2 --> $DIR/outlives-suggestion-more.rs:7: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 | ^^^^^^ returning this value requires that `'a` must outlive `'c`
11 = help: consider adding the following bound: `'a: 'c`
13 error: lifetime may not live long enough
14 --> $DIR/outlives-suggestion-more.rs:7: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 | ^^^^^^ returning this value requires that `'b` must outlive `'d`
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:13: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 | ^^^^^^ returning this value requires that `'a` must outlive `'c`
40 = help: consider adding the following bound: `'a: 'c`
42 error: lifetime may not live long enough
43 --> $DIR/outlives-suggestion-more.rs:13: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: consider replacing `'b` with `'static`
52 help: the following changes may resolve your lifetime errors
54 = help: add bound `'a: 'c`
55 = help: replace `'b` with `'static`
57 error: lifetime may not live long enough
58 --> $DIR/outlives-suggestion-more.rs:23:5
60 LL | fn foo3<'a, 'b, 'c, 'd, 'e>(
61 | -- -- lifetime `'b` defined here
63 | lifetime `'a` defined here
66 | ^^^^^^^^^ function was supposed to return data with lifetime `'b` but it is returning data with lifetime `'a`
68 = help: consider adding the following bound: `'a: 'b`
70 error: lifetime may not live long enough
71 --> $DIR/outlives-suggestion-more.rs:23:5
73 LL | fn foo3<'a, 'b, 'c, 'd, 'e>(
74 | -- -- lifetime `'b` defined here
76 | lifetime `'a` defined here
79 | ^^^^^^^^^ function was supposed to return data with lifetime `'a` but it is returning data with lifetime `'b`
81 = help: consider adding the following bound: `'b: 'a`
83 error: lifetime may not live long enough
84 --> $DIR/outlives-suggestion-more.rs:23:5
86 LL | fn foo3<'a, 'b, 'c, 'd, 'e>(
87 | -- lifetime `'c` defined here
90 | ^^^^^^^^^ returning this value requires that `'c` must outlive `'static`
92 = help: consider replacing `'c` with `'static`
94 help: the following changes may resolve your lifetime errors
96 = help: `'a` and `'b` must be the same: replace one with the other
97 = help: replace `'c` with `'static`
99 error: aborting due to 7 previous errors