2018-12-11 21:49:40 +00:00
|
|
|
error: lifetime may not live long enough
|
2022-04-01 17:13:25 +00:00
|
|
|
--> $DIR/issue-52113.rs:30:9
|
2018-07-27 21:46:16 +00:00
|
|
|
|
|
|
|
|
LL | fn produce_err<'a, 'b: 'a>(data: &'b mut Vec<&'b u32>, value: &'a u32) -> impl Bazinga + 'b {
|
2018-08-06 16:33:05 +00:00
|
|
|
| -- -- lifetime `'b` defined here
|
|
|
|
| |
|
|
|
|
| lifetime `'a` defined here
|
2018-09-15 17:30:29 +00:00
|
|
|
...
|
2022-02-14 16:10:22 +00:00
|
|
|
LL | data.push(value);
|
|
|
|
| ^^^^^^^^^^^^^^^^ argument requires that `'a` must outlive `'b`
|
2018-11-28 21:05:36 +00:00
|
|
|
|
|
2019-10-27 14:39:14 +00:00
|
|
|
= help: consider adding the following bound: `'a: 'b`
|
2018-11-28 21:05:36 +00:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2018-07-27 21:46:16 +00:00
|
|
|
|