rust/tests/ui/privacy/private-item-simple.rs
2023-01-11 09:32:08 +00:00

8 lines
85 B
Rust

mod a {
fn f() {}
}
fn main() {
a::f(); //~ ERROR function `f` is private
}