diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/rmeta/rmeta-lib-pass.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/test/ui/rmeta/rmeta-lib-pass.rs b/src/test/ui/rmeta/rmeta-lib-pass.rs new file mode 100644 index 000000000..fdd0516e4 --- /dev/null +++ b/src/test/ui/rmeta/rmeta-lib-pass.rs @@ -0,0 +1,14 @@ +// compile-flags: --emit=metadata +// aux-build:rmeta-rlib.rs +// no-prefer-dynamic +// build-pass (FIXME(62277): could be check-pass?) + +// Check that building a metadata crate works with a dependent, rlib crate. +// This is a cfail test since there is no executable to run. + +extern crate rmeta_rlib; +use rmeta_rlib::Foo; + +pub fn main() { + let _ = Foo { field: 42 }; +} |