rust/tests/ui/structs-enums/issue-2718-a.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
222 B
Rust
Raw Normal View History

pub struct SendPacket<T> {
2014-11-02 17:58:00 -06:00
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() {}