]> git.lizzy.rs Git - rust.git/blob - src/test/ui/rmeta-pass.rs
Rollup merge of #63356 - ali-raheem:issue#63183, r=KodrAus
[rust.git] / src / test / ui / 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 }