]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/type-alias-impl-trait/issue-63263-closure-return.rs
1 // Regression test for issue #63263.
2 // Tests that we properly handle closures with an explicit return type
3 // that return an opaque type.
7 #![feature(min_type_alias_impl_trait, type_alias_impl_trait)]
10 pub type Closure
= impl FnOnce();
13 || -> Closure { || () }
;