]> git.proxmox.com Git - rustc.git/blobdiff - src/test/compile-fail/warn-pub-extern-crate.rs
Imported Upstream version 1.6.0+dfsg1
[rustc.git] / src / test / compile-fail / warn-pub-extern-crate.rs
index fec0b8e1a4cc1b6e217deaa2f3cc1c9994556ac2..de3cc27c49bd265f8eebfd1d2c060035ca0a6fca 100644 (file)
@@ -8,11 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-// Check that `pub extern crate` gives a warning.
-
+#![feature(rustc_attrs)]
 
 pub extern crate core; //~WARN `pub extern crate` does not work
-//~^ ERROR core
 
-fn main() {
-}
+#[rustc_error]
+fn main() {} //~ ERROR: compilation successful