2021-07-22 13:16:33 -05:00
|
|
|
#![feature(unboxed_closures)]
|
2021-07-26 15:01:16 -05:00
|
|
|
#![feature(type_alias_impl_trait)]
|
2021-07-22 13:16:33 -05:00
|
|
|
|
2022-02-14 10:10:22 -06:00
|
|
|
// check-pass
|
|
|
|
|
2021-07-22 13:16:33 -05:00
|
|
|
type FunType = impl Fn<()>;
|
|
|
|
static STATIC_FN: FunType = some_fn;
|
|
|
|
|
|
|
|
fn some_fn() {}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let _: <FunType as FnOnce<()>>::Output = STATIC_FN();
|
|
|
|
}
|