2017-05-21 11:11:08 +00:00
|
|
|
extern crate core;
|
2018-01-12 21:41:45 +00:00
|
|
|
pub use core as reexported_core; //~ ERROR `core` is private, and cannot be re-exported
|
2017-05-21 12:50:38 +00:00
|
|
|
//~^ WARN this was previously accepted
|
2017-05-21 11:11:08 +00:00
|
|
|
|
|
|
|
mod foo1 {
|
|
|
|
extern crate core;
|
|
|
|
}
|
|
|
|
|
|
|
|
mod foo2 {
|
2021-01-28 21:59:20 +00:00
|
|
|
use foo1::core; //~ ERROR crate import `core` is private
|
2016-10-07 09:23:41 +00:00
|
|
|
pub mod bar {
|
|
|
|
extern crate core;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
mod baz {
|
2021-01-28 21:59:20 +00:00
|
|
|
pub use foo2::bar::core; //~ ERROR crate import `core` is private
|
2016-10-07 09:23:41 +00:00
|
|
|
}
|
|
|
|
|
2017-05-21 11:11:08 +00:00
|
|
|
fn main() {}
|