1 error[E0597]: `x` does not live long enough
2 --> $DIR/issue-52534.rs:22:14
5 | - ^ `x` would have to be valid for `'0`
9 | - ...but `x` is only valid for the duration of the `bar` function, so it is dropped here while still borrowed
11 error[E0597]: `y` does not live long enough
12 --> $DIR/issue-52534.rs:27:26
14 LL | baz(|first, second| &y)
15 | - ^ `y` would have to be valid for `'0`
19 | - ...but `y` is only valid for the duration of the `foobar` function, so it is dropped here while still borrowed
21 error: aborting due to 2 previous errors
23 For more information about this error, try `rustc --explain E0597`.