// Ensures that we can use projections as union field's type. // check-pass #![crate_type = "lib"] pub trait Identity { type Identity; } impl Identity for T { type Identity = Self; } pub type Foo = u8; pub union Bar { pub a: ::Identity, pub b: u8, }