summaryrefslogtreecommitdiffstats
path: root/tests/ui/rmeta/rmeta-lib-pass.rs
blob: fdd0516e4d654f310716a2fe998408d180d5800c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// compile-flags: --emit=metadata
// aux-build:rmeta-rlib.rs
// no-prefer-dynamic
// build-pass (FIXME(62277): could be check-pass?)

// Check that building a metadata crate works with a dependent, rlib crate.
// This is a cfail test since there is no executable to run.

extern crate rmeta_rlib;
use rmeta_rlib::Foo;

pub fn main() {
    let _ = Foo { field: 42 };
}