blob: 5198ca91b3b0be8572b1847070f4f41a1f74338d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
// xfail-fast
// aux-build:crateresolve2-1.rs
// aux-build:crateresolve2-2.rs
// aux-build:crateresolve2-3.rs
mod a {
use crateresolve2(vers = "0.1");
fn f() { assert crateresolve2::f() == 10; }
}
mod b {
use crateresolve2(vers = "0.2");
fn f() { assert crateresolve2::f() == 20; }
}
mod c {
use crateresolve2(vers = "0.3");
fn f() { assert crateresolve2::f() == 30; }
}
fn main() {
a::f();
b::f();
c::f();
}
|