rust/src/test/run-pass/classes-self-referential.rs

14 lines
158 B
Rust
Raw Normal View History

2012-08-15 18:46:55 -07:00
struct kitten {
2012-08-20 12:23:37 -07:00
let cat: Option<cat>;
2012-09-05 15:58:43 -07:00
}
fn kitten(cat: Option<cat>) -> kitten {
kitten {
cat: cat
}
}
type cat = @kitten;
fn main() {}