// check-pass // revisions: min_tait full_tait #![feature(min_type_alias_impl_trait)] #![cfg_attr(full_tait, feature(type_alias_impl_trait))] type X = impl Clone; fn bar(f: F) -> F { f } fn foo() -> X { bar(|_| ()) } fn main() {}