blob: 7414611a748936fb6797b9175a04f0176ca32558 [file] [log] [blame]
// Regression test for issue #63263.
// Tests that we properly handle closures with an explicit return type
// that return an opaque type.
// check-pass
#![feature(type_alias_impl_trait)]
pub type Closure = impl FnOnce();
fn main() {
|| -> Closure { || () };
}