diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/issues/issue-55376.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-55376.rs b/src/test/ui/issues/issue-55376.rs new file mode 100644 index 000000000..4adff2b45 --- /dev/null +++ b/src/test/ui/issues/issue-55376.rs @@ -0,0 +1,16 @@ +// run-pass +// Tests that paths in `pub(...)` don't fail HIR verification. + +#![allow(unused_imports)] +#![allow(dead_code)] + +pub(self) use self::my_mod::Foo; + +mod my_mod { + pub(super) use self::Foo as Bar; + pub(in super::my_mod) use self::Foo as Baz; + + pub struct Foo; +} + +fn main() {} |