2024-02-16 20:02:50 +00:00
|
|
|
//@ build-fail
|
|
|
|
|
//@ aux-build:rmeta-meta.rs
|
|
|
|
|
//@ no-prefer-dynamic
|
2016-11-10 18:29:27 +13: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 };
|
|
|
|
|
}
|
2025-03-29 02:41:32 +03:00
|
|
|
|
|
|
|
|
//~? ERROR crate `rmeta_meta` required to be available in rlib format, but was not found in this form
|