5 // Check that private crates can be used from outside their modules, albeit with warnings
6 use foo::core::cell; //~ ERROR crate import `core` is private
9 foo::core::cell::Cell::new(0); //~ ERROR crate import `core` is private
12 mod core {} // Check that private crates are not glob imported
16 pub extern crate core;
21 use self::core::cell; // Check that public extern crates are glob imported