13 lines
356 B
Rust
13 lines
356 B
Rust
|
// xfail-fast
|
||
|
// aux-build:crateresolve5-1.rs
|
||
|
// aux-build:crateresolve5-2.rs
|
||
|
// error-pattern:mismatched types
|
||
|
|
||
|
use cr5_1 (name = "crateresolve5", vers = "0.1");
|
||
|
use cr5_2 (name = "crateresolve5", vers = "0.2");
|
||
|
|
||
|
fn main() {
|
||
|
// Nominal types from two multiple versions of a crate are different types
|
||
|
assert cr5_1::nominal() == cr5_2::nominal();
|
||
|
}
|