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