2012-08-15 18:46:55 -07:00
|
|
|
struct send_packet<T: copy> {
|
2012-06-25 22:10:28 -07:00
|
|
|
let p: T;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
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() {}
|