rust/tests/ui/structs-enums/issue-2718-a.rs
2023-01-11 09:32:08 +00:00

13 lines
222 B
Rust

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