]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/impl-trait/issues/issue-86201.rs
1 #![feature(unboxed_closures)]
2 #![feature(type_alias_impl_trait)]
4 type FunType
= impl Fn
<()>;
5 //~^ ERROR could not find defining uses
6 static STATIC_FN
: FunType
= some_fn
;
7 //~^ ERROR mismatched types
12 let _
: <FunType
as FnOnce
<()>>::Output
= STATIC_FN();