blob: 496c92141679bd2fb2f7d1f47a9720ca5533c2d9 (
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
|
// xfail-fast
// aux-build:crateresolve4a-1.rs
// aux-build:crateresolve4a-2.rs
// aux-build:crateresolve4b-1.rs
// aux-build:crateresolve4b-2.rs
#[legacy_exports];
mod a {
#[legacy_exports];
extern mod crateresolve4b(vers = "0.1");
fn f() { assert crateresolve4b::f() == 20; }
}
mod b {
#[legacy_exports];
extern mod crateresolve4b(vers = "0.2");
fn f() { assert crateresolve4b::g() == 10; }
}
fn main() {
a::f();
b::f();
}
|