summaryrefslogtreecommitdiffstats
path: root/tests/ui/structs-enums/issue-2718-a.rs
blob: 6c491584540586c9b8e419d70f8075278526a6fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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() {}