rust/src/test/ui/issues/issue-2718-a.rs
2018-12-25 21:08:33 -07:00

13 lines
232 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 `pingpong::Pong` has infinite size
}
fn main() {}