]> git.proxmox.com Git - rustc.git/blob - src/test/ui/impl-trait/issues/issue-86201.rs
New upstream version 1.59.0+dfsg1
[rustc.git] / src / test / ui / impl-trait / issues / issue-86201.rs
1 #![feature(unboxed_closures)]
2 #![feature(type_alias_impl_trait)]
3
4 type FunType = impl Fn<()>;
5 //~^ ERROR could not find defining uses
6 static STATIC_FN: FunType = some_fn;
7 //~^ ERROR mismatched types
8
9 fn some_fn() {}
10
11 fn main() {
12 let _: <FunType as FnOnce<()>>::Output = STATIC_FN();
13 }