Sign in
android
/
toolchain
/
rustc
/
ee32a8b31351dab7161ea2edd877e46fc49c72d0
/
.
/
tests
/
ui
/
issues
/
issue-76077-inaccesible-private-fields
/
issue-76077.rs
blob: 2d29093b01b02e5b6635f70d6c662e183235d81c [
file
] [
log
] [
blame
]
pub
mod
foo
{
pub
struct
Foo
{
you_cant_use_this_field
:
bool
,
}
}
fn
main
()
{
foo
::
Foo
{};
//~^ ERROR cannot construct `Foo` with struct literal syntax due to private fields
}