rust/src/test/auxiliary/cci_class_2.rs

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
}
}
}