2019-03-11 19:49:17 -05:00
|
|
|
// aux-build:rmeta-meta.rs
|
2016-11-09 23:29:27 -06:00
|
|
|
// no-prefer-dynamic
|
2017-09-14 23:42:21 -05:00
|
|
|
// error-pattern: crate `rmeta_meta` required to be available in rlib format, but was not found
|
2016-11-09 23:29:27 -06:00
|
|
|
|
|
|
|
// Check that building a non-metadata crate fails if a dependent crate is
|
|
|
|
// metadata-only.
|
|
|
|
|
|
|
|
extern crate rmeta_meta;
|
|
|
|
use rmeta_meta::Foo;
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let _ = Foo { field: 42 };
|
|
|
|
}
|