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

14 lines
158 B
Rust
Raw Normal View History

2012-08-16 01:46:55 +00:00
struct kitten {
2012-08-20 19:23:37 +00:00
let cat: Option<cat>;
2012-09-05 22:58:43 +00:00
}
fn kitten(cat: Option<cat>) -> kitten {
kitten {
cat: cat
}
}
type cat = @kitten;
fn main() {}