]> git.proxmox.com Git - rustc.git/blobdiff - src/test/run-pass/import-glob-crate.rs
New upstream version 1.14.0+dfsg1
[rustc.git] / src / test / run-pass / import-glob-crate.rs
index b2a9b08b01b86ad0cab084ee716e79286e802022..fec46c7e1f82d9eeffea15398ed755296fd26e8c 100644 (file)
@@ -8,9 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-
-#![allow(dead_assignment)]
-
 use std::mem::*;
 
 pub fn main() {
@@ -20,3 +17,12 @@ pub fn main() {
     assert_eq!(x, 2);
     assert_eq!(y, 1);
 }
+
+#[allow(unused)]
+fn f() {
+    mod foo { pub use *; }
+    mod bar { pub use ::*; }
+
+    foo::main();
+    bar::main();
+}