]> git.proxmox.com Git - rustc.git/blob - src/test/ui/type-alias-impl-trait/issue-63263-closure-return.rs
Merge branch 'debian/experimental' into debian/sid
[rustc.git] / 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.
4
5 // check-pass
6
7 #![feature(min_type_alias_impl_trait, type_alias_impl_trait)]
8 //~^ WARN incomplete
9
10 pub type Closure = impl FnOnce();
11
12 fn main() {
13 || -> Closure { || () };
14 }