]> git.lizzy.rs Git - rust.git/blob - tests/ui/rmeta/rmeta-lib-pass.rs
Merge commit '1d8491b120223272b13451fc81265aa64f7f4d5b' into sync-from-rustfmt
[rust.git] / tests / ui / rmeta / rmeta-lib-pass.rs
1 // compile-flags: --emit=metadata
2 // aux-build:rmeta-rlib.rs
3 // no-prefer-dynamic
4 // build-pass (FIXME(62277): could be check-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 }