about summary refs log tree commit diff
path: root/tests/ui/nll/issue-54189.rs
blob: 2339a722a7b7ad918f45899cb2fe2601b96c178b (plain)
1
2
3
4
5
6
7
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();
}