Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
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
}