summaryrefslogtreecommitdiffstats
path: root/src/test/ui/impl-trait/issues/issue-86201.rs
blob: 0786e66ca8b06c6969184d2160f97a18bd5c1a3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#![feature(unboxed_closures)]
#![feature(type_alias_impl_trait)]

// check-pass

type FunType = impl Fn<()>;
static STATIC_FN: FunType = some_fn;

fn some_fn() {}

fn main() {
    let _: <FunType as FnOnce<()>>::Output = STATIC_FN();
}