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