Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
privacy
/
restricted
/
struct-literal-field.rs
blob: 9c6104755a4f1c371b40e057a2df53855e2b6f43 [
file
] [
log
] [
blame
] [
edit
]
#![
allow
(
warnings
)]
mod
foo
{
pub
mod
bar
{
pub
struct
S
{
pub
(
in foo
)
x
:
i32
,
}
}
fn
f
()
{
use
foo
::
bar
::
S
;
S
{
x
:
0
};
// ok
}
}
fn
main
()
{
use
foo
::
bar
::
S
;
S
{
x
:
0
};
//~ ERROR private
}