2018-11-21 14:20:03 -05:00
|
|
|
// Regression test for #56128. When this `pub(super) use...` gets
|
|
|
|
// exploded in the HIR, we were not handling ids correctly.
|
2018-11-21 18:50:10 -05:00
|
|
|
//
|
2019-11-04 00:00:00 +00:00
|
|
|
// check-pass
|
2018-11-21 14:20:03 -05:00
|
|
|
|
|
|
|
mod bar {
|
|
|
|
pub(super) use self::baz::{x, y};
|
|
|
|
|
|
|
|
mod baz {
|
|
|
|
pub fn x() { }
|
|
|
|
pub fn y() { }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() { }
|