diff options
Diffstat (limited to 'tests/ui/modules/pub-use-handling-in-modules-56128.rs')
| -rw-r--r-- | tests/ui/modules/pub-use-handling-in-modules-56128.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/ui/modules/pub-use-handling-in-modules-56128.rs b/tests/ui/modules/pub-use-handling-in-modules-56128.rs new file mode 100644 index 00000000000..cc170f60250 --- /dev/null +++ b/tests/ui/modules/pub-use-handling-in-modules-56128.rs @@ -0,0 +1,15 @@ +// Regression test for #56128. When this `pub(super) use...` gets +// exploded in the HIR, we were not handling ids correctly. +// +//@ check-pass + +mod bar { + pub(super) use self::baz::{x, y}; + + mod baz { + pub fn x() { } + pub fn y() { } + } +} + +fn main() { } |
