fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
485 B15 linesraw
1error: lifetime may not live long enough
2  --> $DIR/issue-52113.rs:34:5
3   |
4LL | fn produce_err<'a, 'b: 'a>(data: &'b mut Vec<&'b u32>, value: &'a u32) -> impl Bazinga + 'b {
5   |                --  -- lifetime `'b` defined here
6   |                |
7   |                lifetime `'a` defined here
8...
9LL |     x
10   |     ^ returning this value requires that `'a` must outlive `'b`
11   |
12   = help: consider adding the following bound: `'a: 'b`
13
14error: aborting due to previous error
15