blob: 8cc4fef890abf8a40c3460ffa309e191203b15f3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#![feature(unboxed_closures)]
#![feature(type_alias_impl_trait)]
type FunType = impl Fn<()>;
//~^ could not find defining uses
static STATIC_FN: FunType = some_fn;
//~^ mismatched types
fn some_fn() {}
fn main() {
let _: <FunType as FnOnce<()>>::Output = STATIC_FN();
}
|