2020-08-03 21:13:13 -04:00
|
|
|
// check-pass
|
2021-07-26 17:01:16 -03:00
|
|
|
#![feature(type_alias_impl_trait)]
|
2020-07-09 09:13:59 -04:00
|
|
|
|
|
|
|
pub trait ValidTrait {}
|
|
|
|
type ImplTrait = impl ValidTrait;
|
|
|
|
|
|
|
|
/// This returns impl trait, but using a type alias
|
|
|
|
pub fn h() -> ImplTrait {
|
|
|
|
(|| error::_in::impl_trait::alias::nested::closure())()
|
|
|
|
}
|