// run-pass #![feature(type_alias_impl_trait)] type X = impl Clone; fn bar(f: F) -> F { f } fn foo() -> X { bar(|x| ()) } fn main() {}