2019-07-26 16:54:25 -05:00
|
|
|
// run-pass
|
2018-10-29 03:06:27 -05:00
|
|
|
// 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() {}
|