Add regression test for #22146

This commit is contained in:
Jeffrey Seyfried 2016-04-09 02:31:03 +00:00
parent 7979dd6089
commit d1f28f62c7

View 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