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