Sign in
android
/
toolchain
/
rustc
/
d720b3f2ba07cb42ff7b311589c99daefe3aaa22
/
.
/
tests
/
ui
/
privacy
/
restricted
/
private-in-public.rs
blob: 1e3dbdf73b96c93bed0428b9ec6c139ca3adaec6 [
file
] [
log
] [
blame
]
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
}
}
fn
main
()
{
}