13 lines
322 B
Rust
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>;
|
||
|
}
|