]>
git.proxmox.com Git - rustc.git/blob - src/test/ui/traits/trait-alias/trait-alias-syntax.rs
3 #![feature(trait_alias)]
5 trait SimpleAlias
= Default
;
6 trait GenericAlias
<T
> = Iterator
<Item
= T
>;
7 trait Partial
<T
> = IntoIterator
<Item
= T
>;
8 trait SpecificAlias
= GenericAlias
<i32>;
9 trait PartialEqRef
<'a
, T
: 'a
> = PartialEq
<&'a T
>;
10 trait StaticAlias
= '
static;
18 impl<T
, U
> Things
<T
> for The
<U
> {}
19 impl<T
> Romeo
for Fore
<T
> {}
21 trait WithWhere
<Art
, Thou
> = Romeo
+ Romeo
where Fore
<(Art
, Thou
)>: Romeo
;
22 trait BareWhere
<Wild
, Are
> = where The
<Wild
>: Things
<Are
>;