rust/tests/ui/issues/issue-56128.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
277 B
Rust
Raw Normal View History

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