1 error: lifetime may not live long enough
2 --> $DIR/issue-58053.rs:4:33
4 LL | let f = |x: &i32| -> &i32 { x };
5 | - - ^ returning this value requires that `'1` must outlive `'2`
7 | | let's call the lifetime of this reference `'2`
8 | let's call the lifetime of this reference `'1`
10 error: lifetime may not live long enough
11 --> $DIR/issue-58053.rs:8:25
13 LL | let g = |x: &i32| { x };
14 | - - ^ returning this value requires that `'1` must outlive `'2`
16 | | return type of closure is &'2 i32
17 | let's call the lifetime of this reference `'1`
19 error: aborting due to 2 previous errors