rust/src/test/compile-fail/issue-2718-a.rs
Gareth Daniel Smith 6d86969260 change the test suite //! kind syntax to //~ kind in order to avoid a
conflict with the new single-line-sugared-inner-doc-comment (`//! ...`).
2012-06-30 12:23:59 +01:00

13 lines
268 B
Rust

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() {}