rust/src/test/run-pass/static-method-xcrate.rs
2012-09-05 12:32:05 -07:00

14 lines
346 B
Rust

// xfail-fast
// aux-build:static-methods-crate.rs
use static_methods_crate;
use static_methods_crate::read;
use readMaybeRenamed = static_methods_crate::readMaybe;
fn main() {
let result: int = read(~"5");
assert result == 5;
assert readMaybeRenamed(~"false") == Some(false);
assert readMaybeRenamed(~"foo") == None::<bool>;
}