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