error: lifetime may not live long enough
- --> $DIR/outlives-suggestion-more.rs:7:5
+ --> $DIR/outlives-suggestion-more.rs:5:5
|
LL | fn foo1<'a, 'b, 'c, 'd>(x: &'a usize, y: &'b usize) -> (&'c usize, &'d usize) {
| -- -- lifetime `'c` defined here
= help: consider adding the following bound: `'a: 'c`
error: lifetime may not live long enough
- --> $DIR/outlives-suggestion-more.rs:7:5
+ --> $DIR/outlives-suggestion-more.rs:5:5
|
LL | fn foo1<'a, 'b, 'c, 'd>(x: &'a usize, y: &'b usize) -> (&'c usize, &'d usize) {
| -- -- lifetime `'d` defined here
= help: add bound `'b: 'd`
error: lifetime may not live long enough
- --> $DIR/outlives-suggestion-more.rs:13:5
+ --> $DIR/outlives-suggestion-more.rs:11:5
|
LL | fn foo2<'a, 'b, 'c>(x: &'a usize, y: &'b usize) -> (&'c usize, &'static usize) {
| -- -- lifetime `'c` defined here
= help: consider adding the following bound: `'a: 'c`
error: lifetime may not live long enough
- --> $DIR/outlives-suggestion-more.rs:13:5
+ --> $DIR/outlives-suggestion-more.rs:11:5
|
LL | fn foo2<'a, 'b, 'c>(x: &'a usize, y: &'b usize) -> (&'c usize, &'static usize) {
| -- lifetime `'b` defined here
= help: replace `'b` with `'static`
error: lifetime may not live long enough
- --> $DIR/outlives-suggestion-more.rs:23:5
+ --> $DIR/outlives-suggestion-more.rs:21:5
|
LL | fn foo3<'a, 'b, 'c, 'd, 'e>(
| -- -- lifetime `'b` defined here
= help: consider adding the following bound: `'a: 'b`
error: lifetime may not live long enough
- --> $DIR/outlives-suggestion-more.rs:23:5
+ --> $DIR/outlives-suggestion-more.rs:21:5
|
LL | fn foo3<'a, 'b, 'c, 'd, 'e>(
| -- -- lifetime `'b` defined here
= help: consider adding the following bound: `'b: 'a`
error: lifetime may not live long enough
- --> $DIR/outlives-suggestion-more.rs:23:5
+ --> $DIR/outlives-suggestion-more.rs:21:5
|
LL | fn foo3<'a, 'b, 'c, 'd, 'e>(
| -- lifetime `'c` defined here