about summary refs log tree commit diff
path: root/tests/ui/impl-trait/issues/issue-86201.rs
blob: 19c68f7697baa839bf1baa88ece6b45064aebf96 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#![feature(unboxed_closures)]
#![feature(type_alias_impl_trait)]

//@ check-pass

type FunType = impl Fn<()>;
#[define_opaque(FunType)]
fn foo() -> FunType {
    some_fn
}

fn some_fn() {}

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