2012-09-07 16:52:28 -05:00
|
|
|
struct send_packet<T: Copy> {
|
2012-09-06 21:40:15 -05:00
|
|
|
p: T
|
2012-06-26 00:10:28 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
mod pingpong {
|
2012-09-21 20:10:45 -05:00
|
|
|
#[legacy_exports];
|
2012-06-26 00:10:28 -05:00
|
|
|
type ping = send_packet<pong>;
|
2012-06-30 06:23:59 -05:00
|
|
|
enum pong = send_packet<ping>; //~ ERROR illegal recursive enum type; wrap the inner value in a box to make it representable
|
2012-06-26 00:10:28 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|