rust/tests/ui/issues/issue-55376.rs
2023-01-11 09:32:08 +00:00

16 lines
293 B
Rust

// 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() {}