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 main()13pub fn main() { 14 let _ = Foo { field: 42 }; 15 } 16