2019-07-27 00:54:25 +03:00
|
|
|
// run-pass
|
2016-11-11 10:00:33 +13:00
|
|
|
// Test that using rlibs and rmeta dep crates work together. Specifically, that
|
|
|
|
// there can be both an rmeta and an rlib file and rustc will prefer the rlib.
|
|
|
|
|
2019-03-12 00:49:17 +00:00
|
|
|
// aux-build:rmeta-rmeta.rs
|
|
|
|
// aux-build:rmeta-rlib.rs
|
2016-11-11 10:00:33 +13:00
|
|
|
|
|
|
|
extern crate rmeta_aux;
|
|
|
|
use rmeta_aux::Foo;
|
|
|
|
|
|
|
|
pub fn main() {
|
|
|
|
let _ = Foo { field: 42 };
|
|
|
|
}
|