rust/src/test/run-pass/class-method-cross-crate.rs

14 lines
260 B
Rust
Raw Normal View History

// xfail-test
// xfail-fast
// aux-build:cci_class_2.rs
use cci_class;
import cci_class::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();
}