summaryrefslogtreecommitdiffstats
path: root/src/test/ui/impl-trait/issue-51185.rs
blob: 52a2b25539d7c9649013a594af19efc1c4feaccc (plain)
1
2
3
4
5
6
7
8
// run-pass
fn foo() -> impl Into<for<'a> fn(&'a ())> {
    (|_| {}) as for<'a> fn(&'a ())
}

fn main() {
    foo().into()(&());
}