// run-pass #![feature(trait_alias)] trait SimpleAlias = Default; trait GenericAlias = Iterator; trait Partial = IntoIterator; trait SpecificAlias = GenericAlias; trait PartialEqRef<'a, T: 'a> = PartialEq<&'a T>; trait StaticAlias = 'static; trait Things {} trait Romeo {} #[allow(dead_code)] struct The(T); #[allow(dead_code)] struct Fore(T); impl Things for The {} impl Romeo for Fore {} trait WithWhere = Romeo + Romeo where Fore<(Art, Thou)>: Romeo; trait BareWhere = where The: Things; fn main() {}