blob: 1fe8393ab7aa48dd16af5513c0a403f15705add7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
// 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();
}
|