blob: 2339a722a7b7ad918f45899cb2fe2601b96c178b [file] [log] [blame] [edit]
fn bug() -> impl for <'r> Fn() -> &'r () { || { &() } }
//~^ ERROR binding for associated type `Output` references lifetime `'r`
//~| ERROR binding for associated type `Output` references lifetime `'r`
fn main() {
let f = bug();
}