1 // Regression test for issue #66580
2 // Ensures that we don't try to determine whether a closure
3 // is foreign when it's the underlying type of an opaque type
5 #![feature(type_alias_impl_trait)]
7 type Closure = impl FnOnce();
9 fn closure() -> Closure {