1 2 3 4 5 6
fn bug() -> impl for <'r> Fn() -> &'r () { || { &() } } //~^ ERROR binding for associated type `Output` references lifetime `'r` fn main() { let f = bug(); }