2023-06-06 10:26:38 -05:00
|
|
|
#![feature(rustc_attrs)]
|
|
|
|
#![allow(private_in_public)]
|
|
|
|
|
|
|
|
struct SemiPriv;
|
|
|
|
|
|
|
|
mod m {
|
|
|
|
#[rustc_effective_visibility]
|
|
|
|
struct Priv;
|
2023-06-15 11:07:51 -05:00
|
|
|
//~^ ERROR not in the table
|
2023-06-06 10:26:38 -05:00
|
|
|
//~| ERROR not in the table
|
|
|
|
|
|
|
|
#[rustc_effective_visibility]
|
|
|
|
pub fn foo() {} //~ ERROR Direct: pub(crate), Reexported: pub(crate), Reachable: pub(crate), ReachableThroughImplTrait: pub(crate)
|
|
|
|
|
|
|
|
#[rustc_effective_visibility]
|
|
|
|
impl crate::SemiPriv { //~ ERROR Direct: pub(crate), Reexported: pub(crate), Reachable: pub(crate), ReachableThroughImplTrait: pub(crate)
|
|
|
|
pub fn f(_: Priv) {}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|