Sign in
fuchsia
/
third_party
/
rust
/
9ae1a664f7b947dadb9e97eea7703831d9cd5d31
/
.
/
src
/
test
/
ui
/
privacy
/
private-struct-field-ctor.rs
blob: 2c506f347974566336c2457fbd8456627db528f6 [
file
] [
log
] [
blame
]
mod
a
{
pub
struct
Foo
{
x
:
isize
}
}
fn
main
()
{
let
s
=
a
::
Foo
{
x
:
1
};
//~ ERROR field `x` of struct `a::Foo` is private
}