summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-49919.rs
blob: 780f338681dd3107e921dae5d3d715b6f715831b (plain)
1
2
3
4
5
6
7
fn foo<'a, T: 'a>(t: T) -> Box<dyn Fn() -> &'a T + 'a> {
    let foo: Box<dyn for <'c> Fn() -> &'c T> = Box::new(move || &t);
    //~^ ERROR: binding for associated type
    unimplemented!()
}

fn main() {}