2018-12-11 15:49:40 -06:00
|
|
|
error: lifetime may not live long enough
|
2019-04-07 10:07:36 -05:00
|
|
|
--> $DIR/issue-52113.rs:34:5
|
2018-07-27 16:46:16 -05:00
|
|
|
|
|
|
|
|
LL | fn produce_err<'a, 'b: 'a>(data: &'b mut Vec<&'b u32>, value: &'a u32) -> impl Bazinga + 'b {
|
2018-08-06 11:33:05 -05:00
|
|
|
| -- -- lifetime `'b` defined here
|
|
|
|
| |
|
|
|
|
| lifetime `'a` defined here
|
2018-09-15 12:30:29 -05:00
|
|
|
...
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | x
|
2018-09-15 12:30:29 -05:00
|
|
|
| ^ returning this value requires that `'a` must outlive `'b`
|
2018-07-27 16:46:16 -05:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|