24 lines
296 B
Rust
24 lines
296 B
Rust
#[legacy_exports];
|
|
|
|
mod kitties {
|
|
#[legacy_exports];
|
|
|
|
struct cat {
|
|
priv mut meows : uint,
|
|
|
|
how_hungry : int,
|
|
|
|
}
|
|
|
|
impl cat {
|
|
fn speak() {}
|
|
}
|
|
fn cat(in_x : uint, in_y : int) -> cat {
|
|
cat {
|
|
meows: in_x,
|
|
how_hungry: in_y
|
|
}
|
|
}
|
|
|
|
}
|