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