mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-15 08:23:26 +00:00
Add regression test for #22146
This commit is contained in:
parent
7979dd6089
commit
d1f28f62c7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user