Skip to content

Commit

Permalink
Add regression test for rust-lang#22146
Browse files Browse the repository at this point in the history
  • Loading branch information
jseyfried committed Apr 9, 2016
1 parent 7979dd6 commit d1f28f6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/test/compile-fail/extern-crate-visibility.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d1f28f6

Please sign in to comment.