rust/src/test/run-pass/static-method-xcrate.rs

13 lines
322 B
Rust
Raw Normal View History

// 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>;
}