rust/tests/ui/privacy/restricted/private-in-public.rs

12 lines
227 B
Rust
Raw Normal View History

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