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