]> git.proxmox.com Git - rustc.git/blobdiff - src/test/compile-fail/extern-crate-visibility.rs
Imported Upstream version 1.9.0+dfsg1
[rustc.git] / src / test / compile-fail / extern-crate-visibility.rs
index 56a41a15ab3c0b63317895c62c3295fd3c884779..86aae47214804b28888f106310b8e8099354dd29 100644 (file)
@@ -30,5 +30,14 @@ fn f() {
     mod core {} // Check that private crates are not glob imported
 }
 
+mod bar {
+    pub extern crate core;
+}
+
+mod baz {
+    pub use bar::*;
+    use self::core::cell; // Check that public extern crates are glob imported
+}
+
 #[rustc_error]
 fn main() {} //~ ERROR compilation successful