struct send_packet { p: T } mod pingpong { #[legacy_exports]; type ping = send_packet; enum pong = send_packet; //~ ERROR illegal recursive enum type; wrap the inner value in a box to make it representable } fn main() {}