rust/src/test/run-pass/crateresolve4.rs
2012-04-08 02:05:09 +08:00

21 lines
381 B
Rust

// xfail-fast
// aux-build:crateresolve4a-1.rs
// aux-build:crateresolve4a-2.rs
// aux-build:crateresolve4b-1.rs
// aux-build:crateresolve4b-2.rs
mod a {
use crateresolve4b(vers = "0.1");
fn f() { assert crateresolve4b::f() == 20; }
}
mod b {
use crateresolve4b(vers = "0.2");
fn f() { assert crateresolve4b::g() == 10; }
}
fn main() {
a::f();
b::f();
}