blob: e3386d29def02eabcb4840186426032754fc1bc0 (
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<()>;
//~^ ERROR could not find defining uses
static STATIC_FN: FunType = some_fn;
//~^ ERROR mismatched types
fn some_fn() {}
fn main() {
let _: <FunType as FnOnce<()>>::Output = STATIC_FN();
}
|