2019-09-01 16:30:19 -05:00
|
|
|
// check-pass
|
2019-06-03 13:54:28 -05:00
|
|
|
|
2021-03-12 04:53:51 -06:00
|
|
|
// revisions: min_tait full_tait
|
|
|
|
#![feature(min_type_alias_impl_trait)]
|
|
|
|
#![cfg_attr(full_tait, feature(type_alias_impl_trait))]
|
2019-06-03 13:54:28 -05:00
|
|
|
|
2019-07-29 18:11:58 -05:00
|
|
|
type X = impl Clone;
|
2019-06-03 13:54:28 -05:00
|
|
|
|
|
|
|
fn bar<F: Fn(&i32) + Clone>(f: F) -> F {
|
|
|
|
f
|
|
|
|
}
|
|
|
|
|
|
|
|
fn foo() -> X {
|
2019-09-01 16:30:19 -05:00
|
|
|
bar(|_| ())
|
2019-06-03 13:54:28 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|