2012-09-07 14:52:28 -07:00
|
|
|
struct send_packet<T: Copy> {
|
2012-09-06 19:40:15 -07:00
|
|
|
p: T
|
2012-06-25 22:10:28 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
mod pingpong {
|
|
|
|
type ping = send_packet<pong>;
|
2012-06-30 12:23:59 +01:00
|
|
|
enum pong = send_packet<ping>; //~ ERROR illegal recursive enum type; wrap the inner value in a box to make it representable
|
2012-06-25 22:10:28 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|