rust/tests/ui/nll/issue-52113.stderr

16 lines
512 B
Plaintext
Raw Normal View History

2018-12-11 15:49:40 -06:00
error: lifetime may not live long enough
2022-04-01 12:13:25 -05:00
--> $DIR/issue-52113.rs:30:9
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 {
| -- -- lifetime `'b` defined here
| |
| lifetime `'a` defined here
2018-09-15 12:30:29 -05:00
...
LL | data.push(value);
| ^^^^^^^^^^^^^^^^ argument requires that `'a` must outlive `'b`
2018-11-28 15:05:36 -06:00
|
2019-10-27 09:39:14 -05:00
= help: consider adding the following bound: `'a: 'b`
2018-11-28 15:05:36 -06:00
2018-07-27 16:46:16 -05:00
error: aborting due to previous error