rust/src/test/ui/nll/issue-52113.stderr

14 lines
467 B
Plaintext
Raw Normal View History

2018-12-11 15:49:40 -06:00
error: lifetime may not live long enough
--> $DIR/issue-52113.rs:37:5
2018-07-27 22:46:16 +01: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 18:30:29 +01:00
...
2018-12-11 15:49:40 -06:00
LL | x //~ ERROR lifetime may not live long enough
2018-09-15 18:30:29 +01:00
| ^ returning this value requires that `'a` must outlive `'b`
2018-07-27 22:46:16 +01:00
error: aborting due to previous error