2012-03-21 14:42:34 -05:00
|
|
|
// xfail-fast
|
|
|
|
// aux-build:cci_class_2.rs
|
2012-03-22 20:03:12 -05:00
|
|
|
use cci_class_2;
|
|
|
|
import cci_class_2::kitties::*;
|
2012-03-21 14:42:34 -05:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let nyan : cat = cat(52u, 99);
|
|
|
|
let kitty = cat(1000u, 2);
|
|
|
|
assert(nyan.how_hungry == 99);
|
|
|
|
assert(kitty.how_hungry == 2);
|
|
|
|
nyan.speak();
|
|
|
|
}
|