blob: 0af3c9234bdc9bb01e77b0d6f7db088d489d2e67 [file] [edit]
// Make sure that `Placeholder` will be marked as reachable without `use crate::ty` like in
// `effective-visibility-macro.rs` test.
#![feature(rustc_attrs, decl_macro)]
pub mod ty {
pub mod print {
mod pretty {
#[rustc_effective_visibility]
pub macro with_no_queries() {}
//~^ ERROR Direct: pub(in crate::ty::print), Reexported: pub, Reachable: pub, ReachableThroughImplTrait: pub
}
pub use self::pretty::with_no_queries;
}
#[rustc_effective_visibility]
mod sty {
//~^ ERROR Direct: pub(self), Reexported: pub(self), Reachable: pub(self), ReachableThroughImplTrait: pub(self)
#[rustc_effective_visibility]
pub type Placeholder = ();
//~^ ERROR Direct: pub(in crate::ty), Reexported: pub(in crate::ty), Reachable: pub, ReachableThroughImplTrait: pub
}
}
fn main() {}