rust/src/test/compile-fail/crateresolve5.rs

13 lines
356 B
Rust
Raw Normal View History

// 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();
}