]> git.lizzy.rs Git - rust.git/blob - tests/ui/rmeta/rmeta-pass.rs
Merge commit '1d8491b120223272b13451fc81265aa64f7f4d5b' into sync-from-rustfmt
[rust.git] / tests / ui / rmeta / rmeta-pass.rs
1 // compile-flags: --emit=metadata
2 // aux-build:rmeta-meta.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, metadata-only
7 // crate.
8 // This is a cfail test since there is no executable to run.
9
10 extern crate rmeta_meta;
11 use rmeta_meta::Foo;
12
13 pub fn main() {
14     let _ = Foo { field: 42 };
15 }