1 error: unsatisfied lifetime constraints
2 --> $DIR/issue-40510-1.rs:18:9
9 | || ^^^^^^ return requires that `'1` must outlive `'2`
13 | |______lifetime `'1` represents the closure body
14 | lifetime `'2` appears in return type
16 error: aborting due to previous error