☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
rust
/
compile
/
pub_restricted_3.rs
☽
☼
gcc/testsuite/rust/compile/pub_restricted_3.rs
code
plain
raw
1
// { dg-additional-options "-w" }
2
3
mod foo {
4
mod bar {
5
pub(in foo) fn baz() {}
6
}
7
8
fn baz() {
9
bar::baz(); // no error, foo::bar::baz is public in foo
10
}
11
}