]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rmeta-lib-pass.rs
Rollup merge of #57107 - mjbshaw:thread_local_test, r=nikomatsakis
[rust.git] / src / test / ui / rmeta-lib-pass.rs
1 // compile-flags: --emit=metadata
2 // aux-build:rmeta_rlib.rs
3 // no-prefer-dynamic
4 // compile-pass
5
6 // Check that building a metadata crate works with a dependent, rlib crate.
7 // This is a cfail test since there is no executable to run.
8
9 extern crate rmeta_rlib;
10 use rmeta_rlib::Foo;
11
12 pub fn main() {
13     let _ = Foo { field: 42 };
14 }