2019-01-27 11:03:21 +00:00
|
|
|
error: lifetime may not live long enough
|
2022-04-01 17:13:25 +00:00
|
|
|
--> $DIR/regions-outlives-projection-container.rs:36:13
|
2019-01-27 11:03:21 +00:00
|
|
|
|
|
|
|
|
LL | fn with_assoc<'a,'b>() {
|
|
|
|
| -- -- lifetime `'b` defined here
|
|
|
|
| |
|
|
|
|
| lifetime `'a` defined here
|
|
|
|
...
|
|
|
|
LL | let _x: &'a WithAssoc<TheType<'b>> = loop { };
|
2022-11-16 10:11:44 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ requires that `'b` must outlive `'a`
|
2019-10-27 14:39:14 +00:00
|
|
|
|
|
|
|
|
= help: consider adding the following bound: `'b: 'a`
|
2019-01-27 11:03:21 +00:00
|
|
|
|
|
|
|
error: lifetime may not live long enough
|
2022-04-01 17:13:25 +00:00
|
|
|
--> $DIR/regions-outlives-projection-container.rs:54:13
|
2019-01-27 11:03:21 +00:00
|
|
|
|
|
|
|
|
LL | fn without_assoc<'a,'b>() {
|
|
|
|
| -- -- lifetime `'b` defined here
|
|
|
|
| |
|
|
|
|
| lifetime `'a` defined here
|
|
|
|
...
|
|
|
|
LL | let _x: &'a WithoutAssoc<TheType<'b>> = loop { };
|
2022-11-16 10:11:44 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ requires that `'b` must outlive `'a`
|
2019-10-27 14:39:14 +00:00
|
|
|
|
|
|
|
|
= help: consider adding the following bound: `'b: 'a`
|
2019-01-27 11:03:21 +00:00
|
|
|
|
|
|
|
error: lifetime may not live long enough
|
2022-04-01 17:13:25 +00:00
|
|
|
--> $DIR/regions-outlives-projection-container.rs:63:5
|
2019-01-27 11:03:21 +00:00
|
|
|
|
|
|
|
|
LL | fn call_with_assoc<'a,'b>() {
|
|
|
|
| -- -- lifetime `'b` defined here
|
|
|
|
| |
|
|
|
|
| lifetime `'a` defined here
|
|
|
|
...
|
|
|
|
LL | call::<&'a WithAssoc<TheType<'b>>>();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ requires that `'b` must outlive `'a`
|
2019-10-27 14:39:14 +00:00
|
|
|
|
|
|
|
|
= help: consider adding the following bound: `'b: 'a`
|
2019-01-27 11:03:21 +00:00
|
|
|
|
|
|
|
error: lifetime may not live long enough
|
2022-04-01 17:13:25 +00:00
|
|
|
--> $DIR/regions-outlives-projection-container.rs:70:5
|
2019-01-27 11:03:21 +00:00
|
|
|
|
|
|
|
|
LL | fn call_without_assoc<'a,'b>() {
|
|
|
|
| -- -- lifetime `'b` defined here
|
|
|
|
| |
|
|
|
|
| lifetime `'a` defined here
|
|
|
|
...
|
|
|
|
LL | call::<&'a WithoutAssoc<TheType<'b>>>();
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ requires that `'b` must outlive `'a`
|
2019-10-27 14:39:14 +00:00
|
|
|
|
|
|
|
|
= help: consider adding the following bound: `'b: 'a`
|
2019-01-27 11:03:21 +00:00
|
|
|
|
|
|
|
error: aborting due to 4 previous errors
|
|
|
|
|