mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
13 lines
222 B
Rust
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() {}
|