rust/src/test/run-pass/crateresolve2.rs

26 lines
470 B
Rust
Raw Normal View History

// xfail-fast
// aux-build:crateresolve2-1.rs
// aux-build:crateresolve2-2.rs
// aux-build:crateresolve2-3.rs
mod a {
extern mod crateresolve2(vers = "0.1");
fn f() { assert crateresolve2::f() == 10; }
}
mod b {
extern mod crateresolve2(vers = "0.2");
fn f() { assert crateresolve2::f() == 20; }
}
mod c {
extern mod crateresolve2(vers = "0.3");
fn f() { assert crateresolve2::f() == 30; }
}
fn main() {
a::f();
b::f();
c::f();
}