2020-08-03 20:13:13 -05:00
|
|
|
// check-pass
|
2021-07-26 15:01:16 -05:00
|
|
|
#![feature(type_alias_impl_trait)]
|
2020-07-09 08:13:59 -05: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()
|
|
|
|
}
|