rust/src/test/run-pass/class-methods-cross-crate.rs
2012-03-23 23:10:45 -07:00

14 lines
286 B
Rust

// xfail-fast
// aux-build:cci_class_3.rs
use cci_class_3;
import cci_class_3::kitties::*;
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();
assert(nyan.meow_count() == 53u);
}