2012-04-05 18:31:03 -07:00
|
|
|
// xfail-fast
|
2012-04-05 23:57:45 -07:00
|
|
|
// aux-build:crateresolve2-1.rs
|
|
|
|
// aux-build:crateresolve2-2.rs
|
|
|
|
// aux-build:crateresolve2-3.rs
|
2012-04-05 18:31:03 -07:00
|
|
|
|
|
|
|
mod a {
|
2012-04-05 23:57:45 -07:00
|
|
|
use crateresolve2(vers = "0.1");
|
|
|
|
fn f() { assert crateresolve2::f() == 10; }
|
2012-04-05 18:31:03 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
mod b {
|
2012-04-05 23:57:45 -07:00
|
|
|
use crateresolve2(vers = "0.2");
|
|
|
|
fn f() { assert crateresolve2::f() == 20; }
|
2012-04-05 18:31:03 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
mod c {
|
2012-04-05 23:57:45 -07:00
|
|
|
use crateresolve2(vers = "0.3");
|
|
|
|
fn f() { assert crateresolve2::f() == 30; }
|
2012-04-05 18:31:03 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
a::f();
|
|
|
|
b::f();
|
|
|
|
c::f();
|
|
|
|
}
|