rust/src/test/run-pass/classes-self-referential.rs
2012-09-07 14:02:33 -07:00

14 lines
154 B
Rust

struct kitten {
cat: Option<cat>,
}
fn kitten(cat: Option<cat>) -> kitten {
kitten {
cat: cat
}
}
type cat = @kitten;
fn main() {}