pub struct SendPacket { p: T } mod pingpong { use SendPacket; pub type Ping = SendPacket; pub struct Pong(SendPacket); //~^ ERROR recursive type `Pong` has infinite size } fn main() {}