2019-06-21 00:19:11 +09:00
|
|
|
fn bug() -> impl for <'r> Fn() -> &'r () { || { &() } }
|
|
|
|
|
//~^ ERROR binding for associated type `Output` references lifetime `'r`
|
2024-03-20 12:52:54 -04:00
|
|
|
//~| ERROR binding for associated type `Output` references lifetime `'r`
|
2019-06-21 00:19:11 +09:00
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
|
let f = bug();
|
|
|
|
|
}
|