Sign in
rust
/
rust-lang
/
rust
/
refs/heads/try
/
.
/
tests
/
ui
/
structs-enums
/
issue-2718-a.rs
blob: f799a82447fe57a47c5ad2cdae384d385d903d6f [
file
] [
log
] [
blame
]
pub
struct
SendPacket
<
T
>
{
p
:
T
}
mod
pingpong
{
use
crate
::
SendPacket
;
pub
type
Ping
=
SendPacket
<
Pong
>;
pub
struct
Pong
(
SendPacket
<
Ping
>);
//~^ ERROR recursive type `Pong` has infinite size
}
fn
main
()
{}