2018-12-16 21:21:47 -06:00
|
|
|
pub struct SendPacket<T> {
|
2014-11-02 17:58:00 -06:00
|
|
|
p: T
|
2012-06-26 00:10:28 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
mod pingpong {
|
2018-12-16 21:21:47 -06:00
|
|
|
use SendPacket;
|
|
|
|
pub type Ping = SendPacket<Pong>;
|
|
|
|
pub struct Pong(SendPacket<Ping>);
|
|
|
|
//~^ ERROR recursive type `pingpong::Pong` has infinite size
|
2012-06-26 00:10:28 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|