about summary refs log tree commit diff
path: root/tests/ui/rmeta/rmeta_lib.rs
blob: d1a2b653ed80b8ffe05958edfc3a7500297c5424 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//@ build-fail
//@ aux-build:rmeta-meta.rs
//@ no-prefer-dynamic

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

//~? ERROR crate `rmeta_meta` required to be available in rlib format, but was not found in this form