2016-12-23 00:39:20 -06:00
|
|
|
// compile-flags: --emit=metadata
|
2019-03-11 19:49:17 -05:00
|
|
|
// aux-build:rmeta-meta.rs
|
2016-11-09 23:29:27 -06:00
|
|
|
// no-prefer-dynamic
|
2019-07-02 16:30:28 -05:00
|
|
|
// build-pass (FIXME(62277): could be check-pass?)
|
2016-11-09 23:29:27 -06:00
|
|
|
|
|
|
|
// Check that building a metadata crate works with a dependent, metadata-only
|
|
|
|
// crate.
|
|
|
|
// This is a cfail test since there is no executable to run.
|
|
|
|
|
|
|
|
extern crate rmeta_meta;
|
|
|
|
use rmeta_meta::Foo;
|
|
|
|
|
|
|
|
pub fn main() {
|
|
|
|
let _ = Foo { field: 42 };
|
|
|
|
}
|