]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/issue-52113.stderr
Rollup merge of #83807 - sjakobi:77548-remove-ignore-annotations, r=Mark-Simulacrum
[rust.git] / src / test / ui / nll / issue-52113.stderr
1 error: lifetime may not live long enough
2   --> $DIR/issue-52113.rs:34:5
3    |
4 LL | 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 ...
9 LL |     x
10    |     ^ returning this value requires that `'a` must outlive `'b`
11    |
12    = help: consider adding the following bound: `'a: 'b`
13
14 error: aborting due to previous error
15