add regression test

This commit is contained in:
Niko Matsakis 2018-11-21 14:20:03 -05:00
parent 4687eebc28
commit 2bd2fc9418

View file

@ -0,0 +1,13 @@
// Regression test for #56128. When this `pub(super) use...` gets
// exploded in the HIR, we were not handling ids correctly.
mod bar {
pub(super) use self::baz::{x, y};
mod baz {
pub fn x() { }
pub fn y() { }
}
}
fn main() { }