blob: de8c579743fc0e74b5666dcfae31593f0fd0a899 [file] [log] [blame]
// 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() {}