2012-04-07 17:25:33 -07:00
|
|
|
// xfail-fast
|
|
|
|
// aux-build:crateresolve5-1.rs
|
|
|
|
// aux-build:crateresolve5-2.rs
|
|
|
|
|
2012-09-11 17:46:20 -07:00
|
|
|
extern mod cr5_1 (name = "crateresolve5", vers = "0.1");
|
|
|
|
extern mod cr5_2 (name = "crateresolve5", vers = "0.2");
|
2012-04-07 17:25:33 -07:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
// Structural types can be used between two versions of the same crate
|
2012-08-27 16:26:35 -07:00
|
|
|
assert cr5_1::structural().name == cr5_2::structural().name;
|
|
|
|
assert cr5_1::structural().val == cr5_2::structural().val;
|
2012-04-07 17:25:33 -07:00
|
|
|
// Make sure these are actually two different crates
|
|
|
|
assert cr5_1::f() == 10 && cr5_2::f() == 20;
|
|
|
|
}
|