]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/rmeta-lib-pass.rs
Change --crate-type metadata to --emit=metadata
[rust.git] / src / test / compile-fail / rmeta-lib-pass.rs
index f2ac37a2ce9f597925d07daa1bde884abc3ca770..dde559b018cde55ecbc1f7fdac6f8cefc68e5262 100644 (file)
@@ -8,6 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+// compile-flags: --emit=metadata
 // aux-build:rmeta_rlib.rs
 // no-prefer-dynamic
 // must-compile-successfully
@@ -15,8 +16,6 @@
 // Check that building a metadata crate works with a dependent, rlib crate.
 // This is a cfail test since there is no executable to run.
 
-#![crate_type="metadata"]
-
 extern crate rmeta_rlib;
 use rmeta_rlib::Foo;