mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
14 lines
237 B
Rust
14 lines
237 B
Rust
#![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();
|
|
}
|