summary refs log tree commit diff
path: root/src/test/ui/impl-trait/issues/issue-53457.rs
blob: de8c579743fc0e74b5666dcfae31593f0fd0a899 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// run-pass

#![feature(type_alias_impl_trait)]

type X = impl Clone;

fn bar<F: Fn(&i32) + Clone>(f: F) -> F {
    f
}

fn foo() -> X {
    bar(|x| ())
}

fn main() {}