]> git.lizzy.rs Git - rust.git/blob - src/test/ui/regions/regions-ret-borrowed.nll.stderr
Auto merge of #60093 - GuillaumeGomez:fix-attrs-pos, r=Manishearth
[rust.git] / src / test / ui / regions / regions-ret-borrowed.nll.stderr
1 error: lifetime may not live long enough
2   --> $DIR/regions-ret-borrowed.rs:13:14
3    |
4 LL |     with(|o| o)
5    |           -- ^ returning this value requires that `'1` must outlive `'2`
6    |           ||
7    |           |return type of closure is &'2 isize
8    |           has type `&'1 isize`
9
10 error: aborting due to previous error
11