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