2019-07-26 16:54:25 -05:00
|
|
|
// run-pass
|
2016-11-10 15:00:33 -06: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-11 19:49:17 -05:00
|
|
|
// aux-build:rmeta-rmeta.rs
|
2019-07-26 18:07:23 -05:00
|
|
|
// aux-build:rmeta-rlib-rpass.rs
|
2016-11-10 15:00:33 -06:00
|
|
|
|
|
|
|
extern crate rmeta_aux;
|
|
|
|
use rmeta_aux::Foo;
|
|
|
|
|
|
|
|
pub fn main() {
|
|
|
|
let _ = Foo { field: 42 };
|
|
|
|
}
|