2019-01-12 14:55:23 +00:00
|
|
|
error: lifetime may not live long enough
|
2022-04-01 17:13:25 +00:00
|
|
|
--> $DIR/regions-outlives-projection-container-wc.rs:30:12
|
2019-01-12 14:55:23 +00:00
|
|
|
|
|
|
|
|
LL | fn with_assoc<'a,'b>() {
|
|
|
|
| -- -- lifetime `'b` defined here
|
|
|
|
| |
|
|
|
|
| lifetime `'a` defined here
|
|
|
|
...
|
|
|
|
LL | let _: &'a WithAssoc<TheType<'b>> = loop { };
|
2022-11-16 10:11:44 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ requires that `'b` must outlive `'a`
|
2018-11-28 21:05:36 +00:00
|
|
|
|
|
2019-10-27 14:39:14 +00:00
|
|
|
= help: consider adding the following bound: `'b: 'a`
|
2018-11-28 21:05:36 +00:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2019-01-12 14:55:23 +00:00
|
|
|
|