2016-04-10 06:52:25 -05:00
|
|
|
mod foo {
|
|
|
|
struct Priv;
|
|
|
|
mod bar {
|
|
|
|
use foo::Priv;
|
|
|
|
pub(super) fn f(_: Priv) {}
|
2016-04-19 11:24:47 -05:00
|
|
|
pub(crate) fn g(_: Priv) {} //~ ERROR E0446
|
2022-05-20 20:06:44 -05:00
|
|
|
pub(crate) fn h(_: Priv) {} //~ ERROR E0446
|
2016-04-10 06:52:25 -05:00
|
|
|
}
|
|
|
|
}
|
2016-04-19 11:24:47 -05:00
|
|
|
|
|
|
|
fn main() { }
|