rust/src/test/run-pass/static-method-xcrate.rs
2012-08-07 17:18:14 -07:00

13 lines
322 B
Rust

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