about summary refs log tree commit diff
path: root/tests/ui/privacy/pub-restricted-path-usage-55376.rs
blob: ca4e27c30a8fc523a068f7286ca73f62ee4e84ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// https://github.com/rust-lang/rust/issues/55376
//@ 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() {}