1 error: lifetime may not live long enough
2 --> $DIR/issue-54124.rs:2:22
5 | -- lifetime `'a` defined here
6 LL | let _:fn(&()) = |_:&'a ()| {};
7 | ^ - let's call the lifetime of this reference `'1`
9 | requires that `'1` must outlive `'a`
11 error: lifetime may not live long enough
12 --> $DIR/issue-54124.rs:2:22
15 | -- lifetime `'a` defined here
16 LL | let _:fn(&()) = |_:&'a ()| {};
17 | ^ requires that `'a` must outlive `'static`
19 error: aborting due to 2 previous errors