blob: b068f9e1dc25a2dba676ebd45c23b89208f6abdf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
class send_packet<T: copy> {
let p: T;
new(p: T) { self.p = p; }
}
mod pingpong {
type ping = send_packet<pong>;
enum pong = send_packet<ping>; //~ ERROR illegal recursive enum type; wrap the inner value in a box to make it representable
}
fn main() {}
|